From: Niki Roo Date: Sat, 18 Apr 2020 22:00:32 +0000 (+0200) Subject: e621: fix order for pools X-Git-Tag: fanfix-3.1.1~1^2 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=a351d69d95da8563d49e6a4080035fcd69ee1c48;p=fanfix.git e621: fix order for pools --- diff --git a/supported/E621.java b/supported/E621.java index f1660e1..de754c8 100644 --- a/supported/E621.java +++ b/supported/E621.java @@ -106,7 +106,11 @@ class E621 extends BasicSupport { } else if (isSearchOrSet(getSource())) { String baseUrl = "https://e621.net/posts/?page="; String search = "&tags=" + getTagsFromUrl(getSource()); - return getChapters(getSource(), pg, baseUrl, search); + // sets are sorted in reverse order on the website + List> urls = getChapters(getSource(), pg, + baseUrl, search); + Collections.reverse(urls); + return urls; } return new LinkedList>(); @@ -137,8 +141,6 @@ class E621 extends BasicSupport { } } - // They are sorted in reverse order on the website - Collections.reverse(urls); return urls; }