mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-05 13:27:40 +02:00
Remove tag-fox from CheveretoRipper as the site is offline; updated CheveretoRipperTest to URLs that exist and remove flaky tags (Fixes #2075)
This commit is contained in:
@@ -34,7 +34,7 @@ public class CheveretoRipper extends AbstractHTMLRipper {
|
|||||||
super(url);
|
super(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<String> explicit_domains = Arrays.asList("tag-fox.com", "kenzato.uk");
|
private static List<String> explicit_domains = Arrays.asList("kenzato.uk");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getHost() {
|
public String getHost() {
|
||||||
@@ -90,7 +90,6 @@ public class CheveretoRipper extends AbstractHTMLRipper {
|
|||||||
@Override
|
@Override
|
||||||
public Document getNextPage(Document doc) throws IOException {
|
public Document getNextPage(Document doc) throws IOException {
|
||||||
// Find next page
|
// Find next page
|
||||||
String nextUrl = "";
|
|
||||||
// We use comic-nav-next to the find the next page
|
// We use comic-nav-next to the find the next page
|
||||||
Element elem = doc.select("li.pagination-next > a").first();
|
Element elem = doc.select("li.pagination-next > a").first();
|
||||||
if (elem == null) {
|
if (elem == null) {
|
||||||
|
@@ -4,21 +4,20 @@ import java.io.IOException;
|
|||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
|
|
||||||
import com.rarchives.ripme.ripper.rippers.CheveretoRipper;
|
|
||||||
import org.junit.jupiter.api.Tag;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import com.rarchives.ripme.ripper.rippers.CheveretoRipper;
|
||||||
|
|
||||||
public class CheveretoRipperTest extends RippersTest {
|
public class CheveretoRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Tag("flaky")
|
public void testSubdirAlbum1() throws IOException, URISyntaxException {
|
||||||
public void testTagFox() throws IOException, URISyntaxException {
|
|
||||||
CheveretoRipper ripper = new CheveretoRipper(new URI("http://tag-fox.com/album/Thjb").toURL());
|
|
||||||
testRipper(ripper);
|
|
||||||
}
|
|
||||||
@Test
|
|
||||||
@Tag("flaky")
|
|
||||||
public void testSubdirAlbum() throws IOException, URISyntaxException {
|
|
||||||
CheveretoRipper ripper = new CheveretoRipper(new URI("https://kenzato.uk/booru/album/TnEc").toURL());
|
CheveretoRipper ripper = new CheveretoRipper(new URI("https://kenzato.uk/booru/album/TnEc").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSubdirAlbum2() throws IOException, URISyntaxException {
|
||||||
|
CheveretoRipper ripper = new CheveretoRipper(new URI("https://kenzato.uk/booru/album/XWdIp").toURL());
|
||||||
|
testRipper(ripper);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user