Skip to content

Commit

Permalink
Remove tag-fox from CheveretoRipper as the site is offline; updated C…
Browse files Browse the repository at this point in the history
…heveretoRipperTest to URLs that exist and remove flaky tags (Fixes RipMeApp#2075)
  • Loading branch information
metaprime committed Jan 7, 2025
1 parent e9bd8fb commit 4eaaabf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public CheveretoRipper(URL url) throws IOException {
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
public String getHost() {
Expand Down Expand Up @@ -90,7 +90,6 @@ public Document getFirstPage() throws IOException {
@Override
public Document getNextPage(Document doc) throws IOException {
// Find next page
String nextUrl = "";
// We use comic-nav-next to the find the next page
Element elem = doc.select("li.pagination-next > a").first();
if (elem == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
import java.net.URI;
import java.net.URISyntaxException;

import com.rarchives.ripme.ripper.rippers.CheveretoRipper;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import com.rarchives.ripme.ripper.rippers.CheveretoRipper;

public class CheveretoRipperTest extends RippersTest {
@Test
@Tag("flaky")
public void testTagFox() throws IOException, URISyntaxException {
CheveretoRipper ripper = new CheveretoRipper(new URI("http://tag-fox.com/album/Thjb").toURL());
public void testSubdirAlbum1() throws IOException, URISyntaxException {
CheveretoRipper ripper = new CheveretoRipper(new URI("https://kenzato.uk/booru/album/TnEc").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());
public void testSubdirAlbum2() throws IOException, URISyntaxException {
CheveretoRipper ripper = new CheveretoRipper(new URI("https://kenzato.uk/booru/album/XWdIp").toURL());
testRipper(ripper);
}
}

0 comments on commit 4eaaabf

Please sign in to comment.