From 920af1c747538e949df24d29cf778d597be9a482 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Thu, 30 Apr 2020 22:24:10 +0200 Subject: [PATCH] BasicSupport: add the meta on the progress when it is ready --- supported/BasicSupport.java | 2 ++ supported/BasicSupport_Deprecated.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/supported/BasicSupport.java b/supported/BasicSupport.java index ba2164ca..7dbd1365 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 4a7b65b9..98b74db5 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% } -- 2.27.0