From 3ad8454a0c3ff8774e41ffd4b303eddd7cd701ed Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 7 Nov 2017 21:04:38 -0500 Subject: [PATCH] Fixed 8muses ripper --- .../rarchives/ripme/ripper/rippers/EightmusesRipper.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java index 91771713..59fd63ba 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java @@ -178,10 +178,8 @@ public class EightmusesRipper extends AbstractHTMLRipper { sendUpdate(STATUS.LOADING_RESOURCE, imageUrl); logger.info("Getting full sized image from " + imageUrl); Document doc = new Http(imageUrl).get(); // Retrieve the webpage of the image URL - Element fullSizeImage = doc.select(".photo").first(); // Select the "photo" element from the page (there should only be 1) - // subdir is the sub dir the cdn has the image stored in - String subdir = doc.select("input#imageDir").first().attr("value"); - return "https://cdn.ampproject.org/i/s/www.8muses.com/" + subdir + "small/" + fullSizeImage.children().select("#imageName").attr("value"); + String imageName = doc.select("input[id=imageName]").attr("value"); // Select the "input" element from the page + return "https://www.8muses.com/image/fm/" + imageName; } @Override