Fix e621 bug on "pending" pools
authorNiki Roo <niki@nikiroo.be>
Fri, 17 Feb 2017 20:50:27 +0000 (21:50 +0100)
committerNiki Roo <niki@nikiroo.be>
Fri, 17 Feb 2017 20:50:27 +0000 (21:50 +0100)
README.md
src/be/nikiroo/fanfix/supported/BasicSupport.java
src/be/nikiroo/fanfix/supported/E621.java

index 063c248bc1d06ca0bd2867970437650117735ed0..006ad95f34ebd6c9d0defeb175aff72b9204bccc 100644 (file)
--- 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.
 
 
 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.
 
 
 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.
 
index d6801c0dfaf7ba8cb26aff123392196241076d4e..93155961eaea1ff36957553e102d420181a93b7c 100644 (file)
@@ -465,7 +465,6 @@ public abstract class BasicSupport {
         */
        protected Chapter makeChapter(URL source, int number, String name,
                        String content) throws IOException {
         */
        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();
                // Chapter name: process it correctly, then remove the possible
                // redundant "Chapter x: " in front of it
                String chapterName = processPara(name).getContent().trim();
index 476e88b77765e741235909c53f3d82166302399c..665bdd5100cb0e7ef2b10ebc972a0c0729dca607 100644 (file)
@@ -253,7 +253,7 @@ class E621 extends BasicSupport {
                scan.useDelimiter("\\n");
                while (scan.hasNext()) {
                        String line = scan.next();
                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);
                                for (int pos = line.indexOf(key); pos >= 0; pos = line.indexOf(
                                                key, pos + key.length())) {
                                        int endPos = line.indexOf("\"", pos);