Chan ripper now falls back on page title if thread title can not be found
This commit is contained in:
parent
ffb26c2fe0
commit
84cf9b1fc5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user