From 97aaa81a7d821153ec8d06804b905e1c604f0d57 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sat, 18 Apr 2020 23:59:31 +0200 Subject: [PATCH] e621: fix order for pools --- src/be/nikiroo/fanfix/supported/E621.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index f1660e18..de754c8b 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/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