Fix some CBZ cover/fake cover issues
[nikiroo-utils.git] / src / be / nikiroo / fanfix / output / Cbz.java
index c70cc4123d3e05970d9a36ea29d0da089ecbb98c..a84428c4f155d35273649ed8c550918b9606f12d 100644 (file)
@@ -26,8 +26,12 @@ class Cbz extends BasicOutput {
                dir.delete();
                dir.mkdir();
                try {
-                       // will also save the images!
-                       new InfoText().process(story, dir, targetNameOrig);
+                       // will also save the images! (except the cover -> false)
+                       BasicOutput
+                                       .getOutput(OutputType.TEXT, isWriteInfo(), isWriteCover())
+                                       // Force cover to FALSE:
+                                       .setType(OutputType.TEXT, isWriteInfo(), false)
+                                       .process(story, dir, targetNameOrig);
 
                        InfoCover.writeInfo(dir, targetNameOrig, story.getMeta());
                        if (story.getMeta() != null && !story.getMeta().isFakeCover()) {