From a351d69d95da8563d49e6a4080035fcd69ee1c48 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 19 Apr 2020 00:00:32 +0200 Subject: [PATCH] e621: fix order for pools --- supported/E621.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.27.0