From 1822d603af35b758310e182e50103f0a2bffbc85 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 12 Aug 2018 21:39:41 +0200 Subject: [PATCH] space is %20, not %32 (hexa, not deci) --- src/be/nikiroo/fanfix/Main.java | 3 +++ src/be/nikiroo/fanfix/supported/E621.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/be/nikiroo/fanfix/Main.java b/src/be/nikiroo/fanfix/Main.java index 4120656..1e4daa8 100644 --- a/src/be/nikiroo/fanfix/Main.java +++ b/src/be/nikiroo/fanfix/Main.java @@ -221,6 +221,9 @@ public class Main { int diff = progress.getProgress() - current; current += diff; + if (diff <= 0) + return; + StringBuilder builder = new StringBuilder(); for (int i = 0; i < diff; i++) { builder.append('.'); diff --git a/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index d6cbad4..aa3084f 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/supported/E621.java @@ -384,7 +384,7 @@ class E621 extends BasicSupport_Deprecated { if (source.toString().contains(key)) { int pos = source.toString().indexOf(key); String tags = source.toString().substring(pos + key.length()); - tags = tags.replace("+", "%32"); + tags = tags.replace("+", "%20"); try { return new URL(source.toString().substring(0, pos) + "post/index/1/" + tags); -- 2.27.0