From 761f1e29879c3d6a5a1313a3387874a75062c057 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 2 Dec 2017 05:09:22 -0500 Subject: [PATCH] Fixed bug that caused no images to be downloaded --- .../java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java b/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java index 80bdcb34..4646df31 100644 --- a/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java @@ -53,7 +53,7 @@ public abstract class AbstractHTMLRipper extends AlbumRipper { protected boolean hasDescriptionSupport() { return false; } - public boolean hasASAPRipping() {return false;} + public boolean hasASAPRipping() { return false; } protected String[] getDescription(String url, Document page) throws IOException { throw new IOException("getDescription not implemented"); // Do I do this or make an abstract function? } @@ -69,9 +69,8 @@ public abstract class AbstractHTMLRipper extends AlbumRipper { Document doc = getFirstPage(); while (doc != null) { - List imageURLs; + List imageURLs = getURLsFromPage(doc); if (!hasASAPRipping()) { - imageURLs = getURLsFromPage(doc); // Remove all but 1 image if (isThisATest()) { while (imageURLs.size() > 1) {