From: Niki Roo Date: Sun, 12 Aug 2018 19:39:41 +0000 (+0200) Subject: space is %20, not %32 (hexa, not deci) X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=1822d603af35b758310e182e50103f0a2bffbc85;p=fanfix-jexer.git space is %20, not %32 (hexa, not deci) --- 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);