1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-29 16:50:10 +02:00

JagodibujaRipper now stops ripping when the ripper is stopped

This commit is contained in:
cyian-1756
2018-09-11 05:14:58 -04:00
parent 85316c7646
commit e30caaecda

View File

@@ -50,6 +50,12 @@ public class JagodibujaRipper extends AbstractHTMLRipper {
public List<String> getURLsFromPage(Document doc) { public List<String> getURLsFromPage(Document doc) {
List<String> result = new ArrayList<>(); List<String> result = new ArrayList<>();
for (Element comicPageUrl : doc.select("div.gallery-icon > a")) { for (Element comicPageUrl : doc.select("div.gallery-icon > a")) {
// Check if the ripper has been stopped
try {
stopCheck();
} catch (IOException e) {
return result;
}
try { try {
sleep(500); sleep(500);
Document comicPage = Http.url(comicPageUrl.attr("href")).get(); Document comicPage = Http.url(comicPageUrl.attr("href")).get();