From 406447a4c017f2a4592429a67d546a6984460617 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 5 Mar 2017 20:53:01 +0100 Subject: [PATCH] Version 1.4.2: fix for images documents... - the images documents were not working any more --- VERSION | 2 +- src/be/nikiroo/fanfix/supported/E621.java | 4 ++-- src/be/nikiroo/fanfix/supported/Fanfiction.java | 2 +- src/be/nikiroo/fanfix/supported/MangaFox.java | 2 +- src/be/nikiroo/fanfix/supported/YiffStar.java | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 347f5833..9df886c4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.1 +1.4.2 diff --git a/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index 93157167..05d122e6 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/supported/E621.java @@ -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("
"); 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("]
"); } } } diff --git a/src/be/nikiroo/fanfix/supported/Fanfiction.java b/src/be/nikiroo/fanfix/supported/Fanfiction.java index e84acaa2..90736567 100644 --- a/src/be/nikiroo/fanfix/supported/Fanfiction.java +++ b/src/be/nikiroo/fanfix/supported/Fanfiction.java @@ -329,7 +329,7 @@ class Fanfiction extends BasicSupport { } builder.append(line); - builder.append('\n'); + builder.append(' '); } } diff --git a/src/be/nikiroo/fanfix/supported/MangaFox.java b/src/be/nikiroo/fanfix/supported/MangaFox.java index ba42452f..d86cc738 100644 --- a/src/be/nikiroo/fanfix/supported/MangaFox.java +++ b/src/be/nikiroo/fanfix/supported/MangaFox.java @@ -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("]
"); } // to help with the retry and the originalUrl, part 2 diff --git a/src/be/nikiroo/fanfix/supported/YiffStar.java b/src/be/nikiroo/fanfix/supported/YiffStar.java index 0e24714c..ed75b10e 100644 --- a/src/be/nikiroo/fanfix/supported/YiffStar.java +++ b/src/be/nikiroo/fanfix/supported/YiffStar.java @@ -247,7 +247,7 @@ class YiffStar extends BasicSupport { if (ok) { builder.append(line); - builder.append('\n'); + builder.append(' '); } } -- 2.27.0