X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FCbz.java;h=f9eee08d51428cab98f2c3fbe9b6561cd3087f56;hp=012c0474a95df1a05cae162a9518e322f9099a80;hb=68686a37a591a767f6d1af428ea0d5f3d3a1ddc1;hpb=fe999aa400c2627291325558f1ae8c734da7900c diff --git a/src/be/nikiroo/fanfix/supported/Cbz.java b/src/be/nikiroo/fanfix/supported/Cbz.java index 012c047..f9eee08 100644 --- a/src/be/nikiroo/fanfix/supported/Cbz.java +++ b/src/be/nikiroo/fanfix/supported/Cbz.java @@ -39,18 +39,18 @@ class Cbz extends Epub { protected boolean requireInfo() { return false; } - - @Override - public boolean isImageDocument(URL source, InputStream in) - throws IOException { - return true; - } @Override protected boolean getCover() { return false; } + @Override + protected void preprocess(URL source, InputStream in) throws IOException { + super.preprocess(source, in); + meta.setImageDocument(true); + } + @Override public Story process(URL url) throws IOException { Story story = processMeta(url, false, true); @@ -74,9 +74,7 @@ class Cbz extends Epub { if (imageEntry) { try { - // we assume that we can get the UUID without a stream - String uuid = getUuid(url, null) + "_" - + entry.getName(); + String uuid = meta.getUuid() + "_" + entry.getName(); Instance.getCache().addToCache(zipIn, uuid); chap.getParagraphs().add(