Minor improvements to Aerisdies folder naming

This commit is contained in:
cyian-1756 2017-11-23 10:56:43 -05:00
parent 36cd9c713f
commit ef84cb143b

View File

@ -47,18 +47,18 @@ public class AerisdiesRipper extends AbstractHTMLRipper {
return m.group(1); return m.group(1);
} }
// @Override @Override
// public String getAlbumTitle(URL url) throws MalformedURLException { public String getAlbumTitle(URL url) throws MalformedURLException {
// try { try {
// // Attempt to use album title as GID // Attempt to use album title as GID
// String title = getFirstPage().select("title").first().text(); String title = getFirstPage().select("div > div > span[id=albumname] > a").first().text();
// return getHost() + "_" + title.trim(); return getHost() + "_" + getGID(url) + "_" + title.trim();
// } catch (IOException e) { } catch (IOException e) {
// // Fall back to default album naming convention // Fall back to default album naming convention
// logger.info("Unable to find title at " + url); logger.info("Unable to find title at " + url);
// } }
// return super.getAlbumTitle(url); return super.getAlbumTitle(url);
// } }
@Override @Override
public Document getFirstPage() throws IOException { public Document getFirstPage() throws IOException {