e621: fix detection of "?tags" urls
authorNiki Roo <niki@nikiroo.be>
Tue, 14 Aug 2018 13:53:53 +0000 (15:53 +0200)
committerNiki Roo <niki@nikiroo.be>
Tue, 14 Aug 2018 13:53:53 +0000 (15:53 +0200)
src/be/nikiroo/fanfix/supported/E621.java

index aa3084f210cf99140d53d3878f326de46172d6f2..aa9c8af1ee26690cdd86429a911d2b1b7a2d9fa3 100644 (file)
@@ -6,14 +6,11 @@ import java.io.UnsupportedEncodingException;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.net.URLDecoder;
-import java.net.URLEncoder;
 import java.util.AbstractMap;
 import java.util.ArrayList;
-import java.util.Collection;
 import java.util.Collections;
 import java.util.LinkedList;
 import java.util.List;
-import java.util.AbstractMap.SimpleEntry;
 import java.util.Map.Entry;
 import java.util.Scanner;
 
@@ -402,7 +399,7 @@ class E621 extends BasicSupport_Deprecated {
 
        private boolean isSearch(URL url) {
                return url.getPath().startsWith("/post/index/")
-                               || (url.getPath().equals("/post") && url.getQuery().startsWith(
-                                               "tags="));
+                               || (url.getPath().equals("/post/search") && url.getQuery()
+                                               .startsWith("tags="));
        }
 }