Fixing Sankaku ripper and test

This commit is contained in:
4pr0n 2015-03-30 21:54:04 -07:00
parent cdaa3b26d1
commit f671c83500
2 changed files with 2 additions and 3 deletions

View File

@ -83,8 +83,7 @@ public class SankakuComplexRipper extends AbstractHTMLRipper {
public void downloadURL(URL url, int index) {
// Mock up the URL of the post page based on the post ID at the end of the URL.
String postId = url.toExternalForm().replaceAll(".*\\?", "");
String refererURL = "https://idol.sankakucomplex.com/post/show/" + postId;
addURLToDownload(url, postId + "_", "", refererURL, cookies);
addURLToDownload(url, postId + "_", "", "", null);
}
@Override

View File

@ -228,7 +228,7 @@ public class BasicRippersTest extends RippersTest {
}
public void testSankakuChanRip() throws IOException {
AbstractRipper ripper = new SankakuComplexRipper(new URL("https://chan.sankakucomplex.com/?tags=blue_necktie"));
AbstractRipper ripper = new SankakuComplexRipper(new URL("https://chan.sankakucomplex.com/?tags=1girl"));
testRipper(ripper);
}
public void testSankakuIdolRip() throws IOException {