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) {
|
if (subject != null) {
|
||||||
return getHost() + "_" + getGID(url) + "_" + subject;
|
return getHost() + "_" + getGID(url) + "_" + subject;
|
||||||
}
|
}
|
||||||
subject = doc.select("title").text();
|
return doc.select("title").first().text();
|
||||||
return getHost() + "_" + getGID(url) + "_" + subject;
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// Fall back to default album naming convention
|
// Fall back to default album naming convention
|
||||||
logger.warn("Failed to get album title from " + url, e);
|
logger.warn("Failed to get album title from " + url, e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user