try +1
authorNiki Roo <niki@nikiroo.be>
Fri, 10 Aug 2018 16:23:13 +0000 (18:23 +0200)
committerNiki Roo <niki@nikiroo.be>
Fri, 10 Aug 2018 16:23:13 +0000 (18:23 +0200)
src/be/nikiroo/fanfix/data/MetaData.java
src/be/nikiroo/fanfix/library/BasicLibrary.java
src/be/nikiroo/fanfix/library/LocalLibrary.java

index 4b8e65d7e8f674f8b6a99529d91fcce20ba25c9e..cbaf84e3c75def8646332cb7975a650dfe703013 100644 (file)
@@ -482,8 +482,8 @@ public class MetaData implements Cloneable, Comparable<MetaData> {
                }
 
                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);
        }
 }
index 206e80f360dfcb82927cbec0eb7762b2b652c05e..5bc8829af774346f1e7f10e257ff93148d0b0b13 100644 (file)
@@ -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;
index e531072935764398870355bbd8a1027d368bc9e6..3d8aad12f904c7bc9123eccfb710507498a5f834 100644 (file)
@@ -281,7 +281,6 @@ public class LocalLibrary extends BasicLibrary {
                }
 
                super.imprt(other, luid, pg);
-               deleteInfo();
        }
 
        /**