1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-01-29 10:38:14 +01:00

Fix for nhentai changing image URLs

This commit is contained in:
Kleptoc 2022-03-04 11:46:20 -07:00 committed by soloturn
parent 825fd94ced
commit 8b2304d491

View File

@ -126,7 +126,7 @@ public class NhentaiRipper extends AbstractHTMLRipper {
List<String> imageURLs = new ArrayList<>();
Elements thumbs = page.select("a.gallerythumb > img");
for (Element el : thumbs) {
imageURLs.add(el.attr("data-src").replaceAll("t\\.n", "i.n").replaceAll("t\\.", "."));
imageURLs.add(el.attr("data-src").replaceAll("://t", "://i").replaceAll("t\\.", "."));
}
return imageURLs;
}