BasicSupport: add the meta on the progress when it is ready
authorNiki Roo <niki@nikiroo.be>
Thu, 30 Apr 2020 20:24:10 +0000 (22:24 +0200)
committerNiki Roo <niki@nikiroo.be>
Thu, 30 Apr 2020 20:24:10 +0000 (22:24 +0200)
src/be/nikiroo/fanfix/supported/BasicSupport.java
src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java

index ba2164cacac6f077ab1f4d1c97e23b9d9a56f31d..7dbd1365aa1970f2b08000420728f85b65e7c1a8 100644 (file)
@@ -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());
 
index 4a7b65b93d66c1899853888a759842e49e92ff9f..98b74db5d0567f9d415b6da23a3d849a79faa8ed 100644 (file)
@@ -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%
                        }