From 84cf9b1fc5b5decba7f8432270931a601277bf76 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Fri, 10 Nov 2017 21:26:16 -0500 Subject: [PATCH] Chan ripper now falls back on page title if thread title can not be found --- .../java/com/rarchives/ripme/ripper/rippers/ChanRipper.java | 3 +-- 1 file changed, 1 insertion(+), 2 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 10af79b8..06b8c68e 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java @@ -68,8 +68,7 @@ public class ChanRipper extends AbstractHTMLRipper { if (subject != null) { return getHost() + "_" + getGID(url) + "_" + subject; } - subject = doc.select("title").text(); - return getHost() + "_" + getGID(url) + "_" + subject; + 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);