X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FBasicLibrary.java;h=e62416bcca9fd1112bbf8ade0175dc008dcd142d;hb=0bf8264eecb834dd7ca75d30db0980bcb825284b;hp=206e80f360dfcb82927cbec0eb7762b2b652c05e;hpb=efa3c511f39ab1432675e3b75b9b7b32d579f1c3;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/library/BasicLibrary.java b/src/be/nikiroo/fanfix/library/BasicLibrary.java index 206e80f..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,6 +519,7 @@ abstract public class BasicLibrary { */ public synchronized Story save(Story story, String luid, Progress pg) throws IOException { + // Do not change the original metadata, but change the original story MetaData meta = story.getMeta().clone(); story.setMeta(meta);