1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-16 19:04:05 +02:00

Erome ripper does not download images fixed

This commit is contained in:
pesho1323
2023-10-10 21:25:26 +03:00
committed by soloturn
parent 52e7fbb767
commit 68189f27aa

View File

@@ -126,17 +126,16 @@ public class EromeRipper extends AbstractHTMLRipper {
private List<String> getMediaFromPage(Document doc) {
List<String> results = new ArrayList<>();
for (Element el : doc.select("img.img-front")) {
if (el.hasAttr("src")) {
if (el.hasAttr("data-src")) {
//to add images that are not loaded( as all images are lasyloaded as we scroll).
results.add(el.attr("data-src"));
} else if (el.hasAttr("src")) {
if (el.attr("src").startsWith("https:")) {
results.add(el.attr("src"));
} else {
results.add("https:" + el.attr("src"));
}
} else if (el.hasAttr("data-src")) {
//to add images that are not loaded( as all images are lasyloaded as we scroll).
results.add(el.attr("data-src"));
}
}
for (Element el : doc.select("source[label=HD]")) {
if (el.attr("src").startsWith("https:")) {