space is %20, not %32 (hexa, not deci)
authorNiki Roo <niki@nikiroo.be>
Sun, 12 Aug 2018 19:39:41 +0000 (21:39 +0200)
committerNiki Roo <niki@nikiroo.be>
Sun, 12 Aug 2018 19:39:41 +0000 (21:39 +0200)
src/be/nikiroo/fanfix/Main.java
src/be/nikiroo/fanfix/supported/E621.java

index 41206560a3bde407bf0d1f12ddc1f9081dc00d4d..1e4daa801b9b852de9bb91f0964fd7d73d176864 100644 (file)
@@ -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('.');
index d6cbad40744743f27550e66b8f3357caa1be2591..aa3084f210cf99140d53d3878f326de46172d6f2 100644 (file)
@@ -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);