+ @Override
+ public Story imprt(URL url, Progress pg) throws IOException {
+ if (pg == null) {
+ pg = new Progress();
+ }
+
+ Progress pgImprt = new Progress();
+ Progress pgCache = new Progress();
+ pg.setMinMax(0, 10);
+ pg.addProgress(pgImprt, 7);
+ pg.addProgress(pgCache, 3);
+
+ Story story = lib.imprt(url, pgImprt);
+ cacheLib.save(story, story.getMeta().getLuid(), pgCache);
+
+ updateInfo(story.getMeta());
+
+ pg.done();
+ return story;
+ }
+