X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FBasicLibrary.java;h=ee7ee8d48c225994343579efec3f2f381be9eabc;hb=e5714913b0f4611e4d5a8dd8ed1b4d204ecc81ee;hp=5bc8829af774346f1e7f10e257ff93148d0b0b13;hpb=3f9f9d63efef45f1b94bf37ece957cead9c29518;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/library/BasicLibrary.java b/src/be/nikiroo/fanfix/library/BasicLibrary.java index 5bc8829..ee7ee8d 100644 --- a/src/be/nikiroo/fanfix/library/BasicLibrary.java +++ b/src/be/nikiroo/fanfix/library/BasicLibrary.java @@ -355,6 +355,7 @@ abstract public class BasicLibrary { if (type != null) { story = BasicSupport.getSupport(type, url) // .process(pgProcess); + // Because we do not want to clear the meta cache: meta.setCover(story.getMeta().getCover()); story.setMeta(meta); @@ -517,9 +518,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 +534,7 @@ abstract public class BasicLibrary { } story = doSave(story, pg); - System.out.println("story after save: "+story); - + updateInfo(story.getMeta()); return story;