X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FE621.java;h=407ec70ee996123e2b759e2169802fb86cfec63a;hp=44621b9a79fe31ea10773dd6ca3d88b158a092e6;hb=678390e0f81b5337bd20ec59df9cf75bff9824e9;hpb=b5e9855b962842b306c17688c1c793dc1378ea62 diff --git a/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index 44621b9..407ec70 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/supported/E621.java @@ -130,12 +130,12 @@ class E621 extends BasicSupport_Deprecated { } private Image getCover(URL source, InputStream in) throws IOException { - // No cover on searches (/post/) - if (isSearch(source)) - return null; + URL urlForCover = source; + if (isPool(source)) { + urlForCover = new URL(source.toString() + "?page=1"); + } - String images = getChapterContent(new URL(source.toString() + "?page=" - + 1), in, 1, null); + String images = getChapterContent(urlForCover, in, 1, null); if (!images.isEmpty()) { int pos = images.indexOf("
"); if (pos >= 0) {