Merge pull request #683 from cyian-1756/420chanFixes

Fixed failing tests on chanripper
This commit is contained in:
cyian-1756 2018-06-11 13:03:55 -04:00 committed by GitHub
commit 73e2edc234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,15 @@ public class ChanRipper extends AbstractHTMLRipper {
if (url.toExternalForm().contains("desuchan.net") && url.toExternalForm().contains("/res/")) { if (url.toExternalForm().contains("desuchan.net") && url.toExternalForm().contains("/res/")) {
return true; return true;
} }
if (url.toExternalForm().contains("boards.420chan.org") && url.toExternalForm().contains("/res/")) {
return true;
}
if (url.toExternalForm().contains("7chan.org") && url.toExternalForm().contains("/res/")) {
return true;
}
if (url.toExternalForm().contains("xchan.pw") && url.toExternalForm().contains("/board/")) {
return true;
}
return false; return false;
} }