From: Niki Roo Date: Thu, 30 Apr 2020 20:24:10 +0000 (+0200) Subject: BasicSupport: add the meta on the progress when it is ready X-Git-Tag: fanfix-swing-1.1.0~39 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=6b5f20ee8cdb1efefb9c543ca81a037596cc22a1;p=fanfix-swing.git BasicSupport: add the meta on the progress when it is ready --- diff --git a/src/be/nikiroo/fanfix/supported/BasicSupport.java b/src/be/nikiroo/fanfix/supported/BasicSupport.java index ba2164ca..7dbd1365 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupport.java +++ b/src/be/nikiroo/fanfix/supported/BasicSupport.java @@ -273,6 +273,7 @@ public abstract class BasicSupport { meta.setCreationDate(StringUtils.fromTime(new Date().getTime())); } story.setMeta(meta); + pg.put("meta", meta); pg.setProgress(50); @@ -344,6 +345,7 @@ public abstract class BasicSupport { pg.addProgress(pgMeta, 10); Story story = processMeta(true, pgMeta); pgMeta.done(); // 10% + pg.put("meta", story.getMeta()); pg.setName(story.getMeta().getTitle()); diff --git a/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java b/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java index 4a7b65b9..98b74db5 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java +++ b/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java @@ -209,6 +209,7 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { meta.setCreationDate(StringUtils.fromTime(new Date().getTime())); } story.setMeta(meta); + pg.put("meta", meta); pg.setProgress(50); @@ -263,6 +264,7 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { Progress pgMeta = new Progress(); pg.addProgress(pgMeta, 10); Story story = processMeta(url, false, true, pgMeta); + pg.put("meta", story.getMeta()); if (!pgMeta.isDone()) { pgMeta.setProgress(pgMeta.getMax()); // 10% }