From: Niki Roo Date: Fri, 10 Aug 2018 16:36:23 +0000 (+0200) Subject: try +1 X-Git-Tag: fanfix-1.8.0~11 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=0bf8264eecb834dd7ca75d30db0980bcb825284b;p=fanfix.git try +1 --- diff --git a/src/be/nikiroo/fanfix/library/BasicLibrary.java b/src/be/nikiroo/fanfix/library/BasicLibrary.java index 5bc8829..e62416b 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;