Chan ripper now falls back on page title if thread title can not be found

This commit is contained in:
cyian-1756 2017-11-10 21:26:16 -05:00
parent ffb26c2fe0
commit 84cf9b1fc5

View File

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