Merge pull request #533 from cyian-1756/wordpress-8muses.download

Wordpress 8muses.download
This commit is contained in:
cyian-1756 2018-04-19 16:20:02 -04:00 committed by GitHub
commit 1f2803111a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 1 deletions

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;
} }

View File

@ -83,6 +83,12 @@ public class WordpressComicRipperTest extends RippersTest {
new URL("http://tnbtu.com/comic/01-00/")); new URL("http://tnbtu.com/comic/01-00/"));
testRipper(ripper); testRipper(ripper);
} }
public void test_Eightmuses_download() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("https://8muses.download/lustomic-playkittens-josh-samuel-porn-comics-8-muses/"));
testRipper(ripper);
}
// https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI // https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
// public void test_pepsaga() throws IOException { // public void test_pepsaga() throws IOException {
// WordpressComicRipper ripper = new WordpressComicRipper( // WordpressComicRipper ripper = new WordpressComicRipper(