From 14d8be1cd85d6bdd023569c5cae17482f318c0cd Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 14 Aug 2018 15:53:53 +0200 Subject: [PATCH] e621: fix detection of "?tags" urls --- src/be/nikiroo/fanfix/supported/E621.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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=")); } } -- 2.27.0