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