From: Niki Roo Date: Thu, 30 Apr 2020 21:12:18 +0000 (+0200) Subject: do not report story name as progress name X-Git-Tag: fanfix-swing-1.1.0~38 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=ad47ecbdf6deb557f7769badc26623ae2aa03398;p=fanfix-swing.git do not report story name as progress name --- diff --git a/src/be/nikiroo/fanfix/library/BasicLibrary.java b/src/be/nikiroo/fanfix/library/BasicLibrary.java index 82f3fa28..d435f8d7 100644 --- a/src/be/nikiroo/fanfix/library/BasicLibrary.java +++ b/src/be/nikiroo/fanfix/library/BasicLibrary.java @@ -587,7 +587,6 @@ abstract public class BasicLibrary { } Story story = save(support.process(pgProcess), pgSave); - pg.setName(story.getMeta().getTitle()); pg.done(); return story.getMeta(); diff --git a/src/be/nikiroo/fanfix/library/LocalLibrary.java b/src/be/nikiroo/fanfix/library/LocalLibrary.java index aec89721..67209726 100644 --- a/src/be/nikiroo/fanfix/library/LocalLibrary.java +++ b/src/be/nikiroo/fanfix/library/LocalLibrary.java @@ -718,10 +718,6 @@ public class LocalLibrary extends BasicLibrary { } for (File infoFileOrSubdir : infoFilesAndSubdirs) { - if (pgFiles != null) { - pgFiles.setName(infoFileOrSubdir.getName()); - } - if (infoFileOrSubdir.isDirectory()) { addToStories(stories, null, infoFileOrSubdir); } else { diff --git a/src/be/nikiroo/fanfix/supported/BasicSupport.java b/src/be/nikiroo/fanfix/supported/BasicSupport.java index 7dbd1365..35a6ac35 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupport.java +++ b/src/be/nikiroo/fanfix/supported/BasicSupport.java @@ -347,8 +347,6 @@ public abstract class BasicSupport { pgMeta.done(); // 10% pg.put("meta", story.getMeta()); - pg.setName(story.getMeta().getTitle()); - Progress pgGetChapters = new Progress(); pg.addProgress(pgGetChapters, 10); story.setChapters(new ArrayList()); @@ -394,7 +392,6 @@ public abstract class BasicSupport { pgChaps.done(); } - pg.setName(story.getMeta().getTitle()); pg.done(); return story; diff --git a/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java b/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java index 98b74db5..47cb7a2c 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java +++ b/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java @@ -269,8 +269,6 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { pgMeta.setProgress(pgMeta.getMax()); // 10% } - pg.setName("Retrieving " + story.getMeta().getTitle()); - setCurrentReferer(url); Progress pgGetChapters = new Progress(); diff --git a/src/be/nikiroo/fanfix/supported/Cbz.java b/src/be/nikiroo/fanfix/supported/Cbz.java index cf603352..a6188ec5 100644 --- a/src/be/nikiroo/fanfix/supported/Cbz.java +++ b/src/be/nikiroo/fanfix/supported/Cbz.java @@ -73,8 +73,6 @@ class Cbz extends Epub { pgMeta.done(); // 10% - pg.setName(meta.getTitle()); - File tmpDir = Instance.getInstance().getTempFiles().createTempDir("info-text"); String basename = null; @@ -197,9 +195,7 @@ class Cbz extends Epub { } } - pg.setName(meta.getTitle()); pg.done(); - return story; }