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)); } }