Version 1.4.2: fix for images documents...
authorNiki Roo <niki@nikiroo.be>
Sun, 5 Mar 2017 19:53:01 +0000 (20:53 +0100)
committerNiki Roo <niki@nikiroo.be>
Sun, 5 Mar 2017 19:53:01 +0000 (20:53 +0100)
- the images documents were not working any more

VERSION
src/be/nikiroo/fanfix/supported/E621.java
src/be/nikiroo/fanfix/supported/Fanfiction.java
src/be/nikiroo/fanfix/supported/MangaFox.java
src/be/nikiroo/fanfix/supported/YiffStar.java

diff --git a/VERSION b/VERSION
index 347f5833ee6db7495cce808040501bf2c96269a9..9df886c42a1e2082f1471383d986fea4d531f8ac 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.4.1
+1.4.2
index 9315716715b5dbfd6fad8a54c4f1a57bc92fced2..05d122e68b89efc71587fda628f9b17e720736d7 100644 (file)
@@ -92,7 +92,7 @@ class E621 extends BasicSupport {
                String images = getChapterContent(new URL(source.toString() + "?page="
                                + 1), in, 1);
                if (!images.isEmpty()) {
-                       int pos = images.indexOf('\n');
+                       int pos = images.indexOf("<br/>");
                        if (pos >= 0) {
                                images = images.substring(1, pos - 1);
                                return getImage(this, null, images);
@@ -268,7 +268,7 @@ class E621 extends BasicSupport {
                                                        id = id.substring(0, dotPos);
                                                        builder.append("[");
                                                        builder.append(id);
-                                                       builder.append("]\n");
+                                                       builder.append("]<br/>");
                                                }
                                        }
                                }
index e84acaa2c78368caaf6dd6d575d2a0bfce7b5112..90736567adbd70a43ae2afc16ca42671424be04e 100644 (file)
@@ -329,7 +329,7 @@ class Fanfiction extends BasicSupport {
                                }
 
                                builder.append(line);
-                               builder.append('\n');
+                               builder.append(' ');
                        }
                }
 
index ba42452ff332937dc57c459ff092202829e553ff..d86cc738c2f731707e98bb328e93f4f2005a134e 100644 (file)
@@ -312,7 +312,7 @@ class MangaFox extends BasicSupport {
                                builder.append("[");
                                // to help with the retry and the originalUrl, part 1
                                builder.append(withoutQuery(linkImage));
-                               builder.append("]\n");
+                               builder.append("]<br/>");
                        }
 
                        // to help with the retry and the originalUrl, part 2
index 0e24714c83cc806fb139bc64243e296229272509..ed75b10ef4e7e290276d599f6c591f4fc78ef6e6 100644 (file)
@@ -247,7 +247,7 @@ class YiffStar extends BasicSupport {
 
                        if (ok) {
                                builder.append(line);
-                               builder.append('\n');
+                               builder.append(' ');
                        }
                }