From: Niki Roo Date: Fri, 10 Aug 2018 16:23:13 +0000 (+0200) Subject: try +1 X-Git-Tag: fanfix-1.8.0~12 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=3f9f9d63efef45f1b94bf37ece957cead9c29518;p=fanfix.git try +1 --- diff --git a/src/be/nikiroo/fanfix/data/MetaData.java b/src/be/nikiroo/fanfix/data/MetaData.java index 4b8e65d..cbaf84e 100644 --- a/src/be/nikiroo/fanfix/data/MetaData.java +++ b/src/be/nikiroo/fanfix/data/MetaData.java @@ -482,8 +482,8 @@ public class MetaData implements Cloneable, Comparable { } return String.format( - "Title: [%s]\nAuthor: [%s]\nDate: [%s]\nTags: [%s]\n" - + "Resume: [%s]\nCover: [%s]", title, getAuthor(), - getDate(), tags.toString(), resume, cover); + "Meta %s:\n\tTitle: [%s]\n\tAuthor: [%s]\n\tDate: [%s]\n\tTags: [%s]" + + "\n\tResume: [%s]\n\tCover: [%s]", luid, title, + getAuthor(), getDate(), tags.toString(), resume, cover); } } diff --git a/src/be/nikiroo/fanfix/library/BasicLibrary.java b/src/be/nikiroo/fanfix/library/BasicLibrary.java index 206e80f..5bc8829 100644 --- a/src/be/nikiroo/fanfix/library/BasicLibrary.java +++ b/src/be/nikiroo/fanfix/library/BasicLibrary.java @@ -517,6 +517,9 @@ 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); @@ -532,7 +535,8 @@ abstract public class BasicLibrary { } story = doSave(story, pg); - + System.out.println("story after save: "+story); + updateInfo(story.getMeta()); return story; diff --git a/src/be/nikiroo/fanfix/library/LocalLibrary.java b/src/be/nikiroo/fanfix/library/LocalLibrary.java index e531072..3d8aad1 100644 --- a/src/be/nikiroo/fanfix/library/LocalLibrary.java +++ b/src/be/nikiroo/fanfix/library/LocalLibrary.java @@ -281,7 +281,6 @@ public class LocalLibrary extends BasicLibrary { } super.imprt(other, luid, pg); - deleteInfo(); } /**