} 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<Entry<String, URL>> urls = getChapters(getSource(), pg,
+ baseUrl, search);
+ Collections.reverse(urls);
+ return urls;
}
return new LinkedList<Entry<String, URL>>();
}
}
- // They are sorted in reverse order on the website
- Collections.reverse(urls);
return urls;
}