Skip to content

Commit 721438a

Browse files
committed
Remove tag-fox from CheveretoRipper as the site is offline; updated CheveretoRipperTest to URLs that exist and remove flaky tags
1 parent e9bd8fb commit 721438a

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/main/java/com/rarchives/ripme/ripper/rippers/CheveretoRipper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public CheveretoRipper(URL url) throws IOException {
3434
super(url);
3535
}
3636

37-
private static List<String> explicit_domains = Arrays.asList("tag-fox.com", "kenzato.uk");
37+
private static List<String> explicit_domains = Arrays.asList("kenzato.uk");
3838

3939
@Override
4040
public String getHost() {
@@ -90,7 +90,6 @@ public Document getFirstPage() throws IOException {
9090
@Override
9191
public Document getNextPage(Document doc) throws IOException {
9292
// Find next page
93-
String nextUrl = "";
9493
// We use comic-nav-next to the find the next page
9594
Element elem = doc.select("li.pagination-next > a").first();
9695
if (elem == null) {

src/test/java/com/rarchives/ripme/tst/ripper/rippers/CheveretoRipperTest.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@
44
import java.net.URI;
55
import java.net.URISyntaxException;
66

7-
import com.rarchives.ripme.ripper.rippers.CheveretoRipper;
8-
import org.junit.jupiter.api.Tag;
97
import org.junit.jupiter.api.Test;
108

9+
import com.rarchives.ripme.ripper.rippers.CheveretoRipper;
10+
1111
public class CheveretoRipperTest extends RippersTest {
1212
@Test
13-
@Tag("flaky")
14-
public void testTagFox() throws IOException, URISyntaxException {
15-
CheveretoRipper ripper = new CheveretoRipper(new URI("http://tag-fox.com/album/Thjb").toURL());
13+
public void testSubdirAlbum1() throws IOException, URISyntaxException {
14+
CheveretoRipper ripper = new CheveretoRipper(new URI("https://kenzato.uk/booru/album/TnEc").toURL());
1615
testRipper(ripper);
1716
}
17+
1818
@Test
19-
@Tag("flaky")
20-
public void testSubdirAlbum() throws IOException, URISyntaxException {
21-
CheveretoRipper ripper = new CheveretoRipper(new URI("https://kenzato.uk/booru/album/TnEc").toURL());
19+
public void testSubdirAlbum2() throws IOException, URISyntaxException {
20+
CheveretoRipper ripper = new CheveretoRipper(new URI("https://kenzato.uk/booru/album/XWdIp").toURL());
2221
testRipper(ripper);
2322
}
2423
}

0 commit comments

Comments
 (0)