From: Niki Roo Date: Tue, 14 Aug 2018 13:53:53 +0000 (+0200) Subject: e621: fix detection of "?tags" urls X-Git-Tag: fanfix-1.8.1~10 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=14d8be1cd85d6bdd023569c5cae17482f318c0cd;p=fanfix.git e621: fix detection of "?tags" urls --- diff --git a/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index aa3084f..aa9c8af 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/supported/E621.java @@ -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=")); } }