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-3.1.2~12^2~3 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=920af1c747538e949df24d29cf778d597be9a482;p=fanfix.git BasicSupport: add the meta on the progress when it is ready --- diff --git a/supported/BasicSupport.java b/supported/BasicSupport.java index ba2164c..7dbd136 100644 --- a/supported/BasicSupport.java +++ b/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/supported/BasicSupport_Deprecated.java b/supported/BasicSupport_Deprecated.java index 4a7b65b..98b74db 100644 --- a/supported/BasicSupport_Deprecated.java +++ b/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% }