Remove tnbtu

Looks good.
This commit is contained in:
Kevin Jiang 2018-05-29 22:23:44 -04:00 committed by GitHub
commit 0f2e6c5793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 28 deletions

View File

@ -31,7 +31,6 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
// http://www.konradokonski.com/wiory/comic/08182008/ // http://www.konradokonski.com/wiory/comic/08182008/
// http://freeadultcomix.com/finders-feepaid-in-full-sparrow/ // http://freeadultcomix.com/finders-feepaid-in-full-sparrow/
// http://thisis.delvecomic.com/NewWP/comic/in-too-deep/ // http://thisis.delvecomic.com/NewWP/comic/in-too-deep/
// http://tnbtu.com/comic/01-00/
// http://shipinbottle.pepsaga.com/?p=281 // http://shipinbottle.pepsaga.com/?p=281
private static List<String> explicit_domains = Arrays.asList( private static List<String> explicit_domains = Arrays.asList(
@ -43,7 +42,6 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
"www.konradokonski.com", "www.konradokonski.com",
"freeadultcomix.com", "freeadultcomix.com",
"thisis.delvecomic.com", "thisis.delvecomic.com",
"tnbtu.com",
"shipinbottle.pepsaga.com", "shipinbottle.pepsaga.com",
"8muses.download", "8muses.download",
"spyingwithlana.com" "spyingwithlana.com"
@ -56,7 +54,6 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
"prismblush.com", "prismblush.com",
"www.konradokonski.com", "www.konradokonski.com",
"thisis.delvecomic.com", "thisis.delvecomic.com",
"tnbtu.com",
"spyingwithlana.com" "spyingwithlana.com"
); );
@ -137,12 +134,6 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
return true; return true;
} }
Pattern tnbtuPat = Pattern.compile("https?://tnbtu.com/comic/([0-9_\\-]*)/?$");
Matcher tnbtuMat = tnbtuPat.matcher(url.toExternalForm());
if (tnbtuMat.matches()) {
return true;
}
Pattern shipinbottlePat = Pattern.compile("https?://shipinbottle.pepsaga.com/\\?p=([0-9]*)/?$"); Pattern shipinbottlePat = Pattern.compile("https?://shipinbottle.pepsaga.com/\\?p=([0-9]*)/?$");
Matcher shipinbottleMat =shipinbottlePat.matcher(url.toExternalForm()); Matcher shipinbottleMat =shipinbottlePat.matcher(url.toExternalForm());
if (shipinbottleMat.matches()) { if (shipinbottleMat.matches()) {
@ -277,12 +268,6 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
return getHost() + "_" + comicsxxxMat.group(1); return getHost() + "_" + comicsxxxMat.group(1);
} }
Pattern tnbtuPat = Pattern.compile("https?://tnbtu.com/comic/([0-9_\\-]*)/?$");
Matcher tnbtuMat = tnbtuPat.matcher(url.toExternalForm());
if (tnbtuMat.matches()) {
return getHost() + "_" + "The_Night_Belongs_to_Us";
}
Pattern shipinbottlePat = Pattern.compile("https?://shipinbottle.pepsaga.com/\\?p=([0-9]*)/?$"); Pattern shipinbottlePat = Pattern.compile("https?://shipinbottle.pepsaga.com/\\?p=([0-9]*)/?$");
Matcher shipinbottleMat =shipinbottlePat.matcher(url.toExternalForm()); Matcher shipinbottleMat =shipinbottlePat.matcher(url.toExternalForm());
if (shipinbottleMat.matches()) { if (shipinbottleMat.matches()) {
@ -413,13 +398,10 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
|| getHost().contains("themonsterunderthebed.net")) { || getHost().contains("themonsterunderthebed.net")) {
addURLToDownload(url, pageTitle + "_"); addURLToDownload(url, pageTitle + "_");
} }
if (getHost().contains("tnbtu.com")) {
// We need to set the referrer header for tnbtu
addURLToDownload(url, getPrefix(index), "","http://www.tnbtu.com/comic", null);
} else {
// If we're ripping a site where we can't get the page number/title we just rip normally // If we're ripping a site where we can't get the page number/title we just rip normally
addURLToDownload(url, getPrefix(index)); addURLToDownload(url, getPrefix(index));
}
} }

View File

@ -86,12 +86,6 @@ public class WordpressComicRipperTest extends RippersTest {
testRipper(ripper); testRipper(ripper);
} }
public void test_tnbtu() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://tnbtu.com/comic/01-00/"));
testRipper(ripper);
}
public void test_Eightmuses_download() throws IOException { public void test_Eightmuses_download() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper( WordpressComicRipper ripper = new WordpressComicRipper(
new URL("https://8muses.download/lustomic-playkittens-josh-samuel-porn-comics-8-muses/")); new URL("https://8muses.download/lustomic-playkittens-josh-samuel-porn-comics-8-muses/"));