From: Niki Roo Date: Sat, 18 Apr 2020 22:00:32 +0000 (+0200) Subject: e621: fix order for pools X-Git-Tag: fanfix-swing-0.0.1~12^2 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=a351d69d95da8563d49e6a4080035fcd69ee1c48;p=fanfix-swing.git e621: fix order for pools --- diff --git a/supported/E621.java b/supported/E621.java index f1660e18..de754c8b 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; }