From 0bf8264eecb834dd7ca75d30db0980bcb825284b Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 10 Aug 2018 18:36:23 +0200 Subject: [PATCH] try +1 --- src/be/nikiroo/fanfix/library/BasicLibrary.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/be/nikiroo/fanfix/library/BasicLibrary.java b/src/be/nikiroo/fanfix/library/BasicLibrary.java index 5bc8829a..e62416bc 100644 --- a/src/be/nikiroo/fanfix/library/BasicLibrary.java +++ b/src/be/nikiroo/fanfix/library/BasicLibrary.java @@ -355,6 +355,8 @@ abstract public class BasicLibrary { if (type != null) { story = BasicSupport.getSupport(type, url) // .process(pgProcess); + System.out.println("orig meta: "+meta); + System.out.println("story retrieved: "+story); // Because we do not want to clear the meta cache: meta.setCover(story.getMeta().getCover()); story.setMeta(meta); @@ -517,9 +519,7 @@ abstract public class BasicLibrary { */ public synchronized Story save(Story story, String luid, Progress pg) throws IOException { - - System.out.println("story before save: "+story); - + // Do not change the original metadata, but change the original story MetaData meta = story.getMeta().clone(); story.setMeta(meta); @@ -535,8 +535,7 @@ abstract public class BasicLibrary { } story = doSave(story, pg); - System.out.println("story after save: "+story); - + updateInfo(story.getMeta()); return story; -- 2.27.0