Fix some CBZ cover/fake cover issues
[fanfix.git] / src / be / nikiroo / fanfix / output / Cbz.java
index 8853c7695a2c6ac94883f6b8d1b80146e0710d3f..a84428c4f155d35273649ed8c550918b9606f12d 100644 (file)
@@ -26,9 +26,12 @@ class Cbz extends BasicOutput {
                dir.delete();
                dir.mkdir();
                try {
-                       // will also save the images!
-                       BasicOutput.getOutput(OutputType.TEXT, isWriteInfo()).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()) {