From: Niki Roo Date: Fri, 17 Feb 2017 20:50:27 +0000 (+0100) Subject: Fix e621 bug on "pending" pools X-Git-Tag: fanfix-1.1.0~3 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=d98a29006897a1ae31ff3a039afe9643a48e0704;p=fanfix.git Fix e621 bug on "pending" pools --- diff --git a/README.md b/README.md index 063c248..006ad95 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ We support a few file types for local story conversion (both as input and as out Any platform with at lest Java 1.6 on it should be ok. -It has only been tested on Linux and Windows for now, but feel free to inform me if you try it on another system. +It has been tested on Linux, MacOS X and Windows for now, but feel free to inform me if you try it on another system. If you have any problems to compile it with a supported Java version (1.5 won't work, but you may try to cross-compile; 1.6 and 1.8 have been tested and work), please contact me. diff --git a/src/be/nikiroo/fanfix/supported/BasicSupport.java b/src/be/nikiroo/fanfix/supported/BasicSupport.java index d6801c0..9315596 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupport.java +++ b/src/be/nikiroo/fanfix/supported/BasicSupport.java @@ -465,7 +465,6 @@ public abstract class BasicSupport { */ protected Chapter makeChapter(URL source, int number, String name, String content) throws IOException { - // Chapter name: process it correctly, then remove the possible // redundant "Chapter x: " in front of it String chapterName = processPara(name).getContent().trim(); diff --git a/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index 476e88b..665bdd5 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/supported/E621.java @@ -253,7 +253,7 @@ class E621 extends BasicSupport { scan.useDelimiter("\\n"); while (scan.hasNext()) { String line = scan.next(); - if (line.contains("class=\"preview\"")) { + if (line.contains("class=\"preview")) { for (int pos = line.indexOf(key); pos >= 0; pos = line.indexOf( key, pos + key.length())) { int endPos = line.indexOf("\"", pos);