From 736f0f4abf2ada37729e6d462c9a1c1ceb8d93f6 Mon Sep 17 00:00:00 2001 From: YuRick555 <30663514+YuRick555@users.noreply.github.com> Date: Sun, 26 Aug 2018 11:43:25 +0300 Subject: [PATCH] Update LusciousRipper.java Fixes https://github.com/RipMeApp/ripme/issues/64 https://github.com/RipMeApp/ripme/issues/792 --- .../com/rarchives/ripme/ripper/rippers/LusciousRipper.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/LusciousRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/LusciousRipper.java index 68197721..2ffddb70 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/LusciousRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/LusciousRipper.java @@ -35,7 +35,7 @@ public class LusciousRipper extends AbstractHTMLRipper { public Document getFirstPage() throws IOException { // "url" is an instance field of the superclass Document page = Http.url(url).get(); - URL firstUrl = new URL("https://luscious.net" + page.select("div > div.album_cover_item > a").first().attr("href")); + URL firstUrl = new URL("https://luscious.net" + page.select("div > div.item.thumbnail.ic_container > a").first().attr("href")); LOGGER.info("First page is " + "https://luscious.net" + page.select("div > div.album_cover_item > a").first().attr("href")); return Http.url(firstUrl).get(); } @@ -43,10 +43,11 @@ public class LusciousRipper extends AbstractHTMLRipper { @Override public List getURLsFromPage(Document page) { List urls = new ArrayList<>(); - Elements urlElements = page.select("img#single_picture"); + Elements urlElements = page.select(".icon-download"); for (Element e : urlElements) { - urls.add(e.attr("src")); + urls.add(e.attr("href")); } + // This is here for pages with mp4s instead of images String video_image = ""; video_image = page.select("div > video > source").attr("src");