Fix cover file not sent over wire
[fanfix.git] / src / be / nikiroo / fanfix / output / Cbz.java
index c70cc4123d3e05970d9a36ea29d0da089ecbb98c..8853c7695a2c6ac94883f6b8d1b80146e0710d3f 100644 (file)
@@ -27,7 +27,8 @@ class Cbz extends BasicOutput {
                dir.mkdir();
                try {
                        // will also save the images!
-                       new InfoText().process(story, dir, targetNameOrig);
+                       BasicOutput.getOutput(OutputType.TEXT, isWriteInfo()).process(
+                                       story, dir, targetNameOrig);
 
                        InfoCover.writeInfo(dir, targetNameOrig, story.getMeta());
                        if (story.getMeta() != null && !story.getMeta().isFakeCover()) {