Added uspport for all album types

This commit is contained in:
cyian-1756 2018-10-05 08:16:07 -04:00
parent 30adce3b73
commit edd42d92d7
1 changed files with 4 additions and 0 deletions

View File

@ -50,8 +50,12 @@ public class PorncomixDotOneRipper extends AbstractHTMLRipper {
@Override
public List<String> getURLsFromPage(Document doc) {
List<String> result = new ArrayList<>();
// We have 2 loops here to cover all the different album types
for (Element el : doc.select(".dgwt-jg-gallery > a")) {
result.add(el.attr("href"));
}
for (Element el : doc.select(".unite-gallery > img")) {
result.add(el.attr("data-image"));
}
return result;