Fixing Sankaku ripper and test
This commit is contained in:
parent
cdaa3b26d1
commit
f671c83500
@ -83,8 +83,7 @@ public class SankakuComplexRipper extends AbstractHTMLRipper {
|
|||||||
public void downloadURL(URL url, int index) {
|
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.
|
// 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 postId = url.toExternalForm().replaceAll(".*\\?", "");
|
||||||
String refererURL = "https://idol.sankakucomplex.com/post/show/" + postId;
|
addURLToDownload(url, postId + "_", "", "", null);
|
||||||
addURLToDownload(url, postId + "_", "", refererURL, cookies);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -228,7 +228,7 @@ public class BasicRippersTest extends RippersTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testSankakuChanRip() throws IOException {
|
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);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
public void testSankakuIdolRip() throws IOException {
|
public void testSankakuIdolRip() throws IOException {
|
||||||
|
Loading…
Reference in New Issue
Block a user