Support for no-chapter stories or stories with descriiption before Chatper
[nikiroo-utils.git] / supported / Cbz.java
index cf6033523a05cbb509ebab2052c2d285cfdffd4d..7fe496d97ea8acb9e8869bb41c37d6723e19a636 100644 (file)
@@ -73,8 +73,6 @@ class Cbz extends Epub {
 
                pgMeta.done(); // 10%
                
-               pg.setName(meta.getTitle());
-
                File tmpDir = Instance.getInstance().getTempFiles().createTempDir("info-text");
                String basename = null;
 
@@ -170,7 +168,7 @@ class Cbz extends Epub {
                        }
 
                        if (!imagesList.isEmpty()) {
-                               Chapter chap = new Chapter(story.getChapters().size() + 1, null);
+                               Chapter chap = new Chapter(story.getChapters().size() + 1, "");
                                story.getChapters().add(chap);
 
                                for (String uuid : imagesList) {
@@ -197,9 +195,7 @@ class Cbz extends Epub {
                        }
                }
 
-               pg.setName(meta.getTitle());
                pg.done();
-               
                return story;
        }