Added support for 8muses.download

This commit is contained in:
cyian-1756 2018-04-19 16:00:07 -04:00
parent 1dadd26e05
commit d6535cd2d3

View File

@ -44,7 +44,8 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
"freeadultcomix.com", "freeadultcomix.com",
"thisis.delvecomic.com", "thisis.delvecomic.com",
"tnbtu.com", "tnbtu.com",
"shipinbottle.pepsaga.com" "shipinbottle.pepsaga.com",
"8muses.download"
); );
@Override @Override
@ -135,6 +136,12 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
if (shipinbottleMat.matches()) { if (shipinbottleMat.matches()) {
return true; return true;
} }
Pattern eight_musesPat = Pattern.compile("https?://8muses.download/([a-zA-Z0-9_-]+)/?$");
Matcher eight_musesMat = eight_musesPat.matcher(url.toExternalForm());
if (eight_musesMat.matches()) {
return true;
}
} }
@ -209,6 +216,11 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
return getHost() + "_" + "Ship_in_bottle"; return getHost() + "_" + "Ship_in_bottle";
} }
Pattern eight_musesPat = Pattern.compile("https?://8muses.download/([a-zA-Z0-9_-]+)/?$");
Matcher eight_musesMat = eight_musesPat.matcher(url.toExternalForm());
if (eight_musesMat.matches()) {
return getHost() + "_" + eight_musesMat.group(1);
}
return super.getAlbumTitle(url); return super.getAlbumTitle(url);
} }
@ -315,6 +327,12 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
} }
} }
if (url.toExternalForm().contains("8muses.download")) {
for (Element elem : doc.select("div.popup-gallery > figure > a")) {
result.add(elem.attr("href"));
}
}
return result; return result;
} }