Fix tests by removing uneeded error traces
[nikiroo-utils.git] / src / be / nikiroo / fanfix / output / Cbz.java
index 8853c7695a2c6ac94883f6b8d1b80146e0710d3f..4a89d9b92a54551845ab57dc653f79dd17229d01 100644 (file)
@@ -26,9 +26,17 @@ 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);
+
+                       try {
+                               super.process(story, targetDir, targetNameOrig);
+                       } finally {
+                       }
 
                        InfoCover.writeInfo(dir, targetNameOrig, story.getMeta());
                        if (story.getMeta() != null && !story.getMeta().isFakeCover()) {
@@ -37,11 +45,6 @@ class Cbz extends BasicOutput {
 
                        IOUtils.writeSmallFile(dir, "version", "3.0");
 
-                       try {
-                               super.process(story, targetDir, targetNameOrig);
-                       } finally {
-                       }
-
                        IOUtils.zip(dir, target, true);
                } finally {
                        IOUtils.deltree(dir);