git://git.nikiroo.be
/
fanfix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f9f9d6
)
try +1
author
Niki Roo
<niki@nikiroo.be>
Fri, 10 Aug 2018 16:36:23 +0000
(18:36 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Fri, 10 Aug 2018 16:36:23 +0000
(18:36 +0200)
src/be/nikiroo/fanfix/library/BasicLibrary.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/fanfix/library/BasicLibrary.java
b/src/be/nikiroo/fanfix/library/BasicLibrary.java
index 5bc8829af774346f1e7f10e257ff93148d0b0b13..e62416bcca9fd1112bbf8ade0175dc008dcd142d 100644
(file)
--- 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);
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);
// 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 {
*/
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);
// 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);
}
story = doSave(story, pg);
- System.out.println("story after save: "+story);
-
+
updateInfo(story.getMeta());
return story;
updateInfo(story.getMeta());
return story;