Add getGid()

This commit is contained in:
EgorGornak 2017-11-28 01:11:03 +03:00 committed by GitHub
parent dc66b03c16
commit bd6359babd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ public class ImagearnRipper extends AbstractHTMLRipper {
try {
Document doc = getFirstPage();
String title = doc.select("h3 > strong").first().text(); // profile name
return getHost() + "_" + title + "_" + getGID();
return getHost() + "_" + title + "_" + getGID(url);
} catch (Exception e) {
// Fall back to default album naming convention
logger.warn("Failed to get album title from " + url, e);