From 4016f35ab48966862028b79ea2d8b71623c6ee6a Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 14 Nov 2017 13:22:20 -0500 Subject: [PATCH] Ripper now falls back to getHost() and getGID(), not page title --- .../java/com/rarchives/ripme/ripper/rippers/ChanRipper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java index d986d655..297f135a 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java @@ -70,12 +70,12 @@ public class ChanRipper extends AbstractHTMLRipper { } catch (NullPointerException e) { logger.warn("Failed to get thread title from " + url); } - return doc.select("title").first().text(); } catch (Exception e) { // Fall back to default album naming convention logger.warn("Failed to get album title from " + url, e); } - return super.getAlbumTitle(url); + // Fall back on the GID + return getHost() + "_" + getGID(url); } @Override @@ -211,6 +211,6 @@ public class ChanRipper extends AbstractHTMLRipper { @Override public void downloadURL(URL url, int index) { - addURLToDownload(url, getPrefix(index), "", this.url.toString(), null); + addURLToDownload(url, getPrefix(index)); } }