mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-10 16:04:19 +02:00
Fixing Sankaku ripper and test
This commit is contained in:
@@ -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
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user