1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-07-31 11:00:13 +02: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<>(); List<String> imageURLs = new ArrayList<>();
Elements thumbs = page.select("a.gallerythumb > img"); Elements thumbs = page.select("a.gallerythumb > img");
for (Element el : thumbs) { 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; return imageURLs;
} }