mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-07 06:16:42 +02:00
PornhubRipperTest - update links to albums that aren't 404
This commit is contained in:
@@ -5,19 +5,28 @@ import java.net.URI;
|
|||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
import com.rarchives.ripme.ripper.rippers.PornhubRipper;
|
|
||||||
import com.rarchives.ripme.utils.Http;
|
|
||||||
import com.rarchives.ripme.utils.Utils;
|
|
||||||
import org.jsoup.nodes.Document;
|
import org.jsoup.nodes.Document;
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Tag;
|
import org.junit.jupiter.api.Tag;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import com.rarchives.ripme.ripper.rippers.PornhubRipper;
|
||||||
|
import com.rarchives.ripme.utils.Http;
|
||||||
|
import com.rarchives.ripme.utils.Utils;
|
||||||
|
|
||||||
public class PornhubRipperTest extends RippersTest {
|
public class PornhubRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
public void testPornhubRip() throws IOException, URISyntaxException {
|
public void testPornhubAlbumRip() throws IOException, URISyntaxException {
|
||||||
if (Utils.getConfigBoolean("test.run_flaky_tests", false)) {
|
if (Utils.getConfigBoolean("test.run_flaky_tests", false)) {
|
||||||
PornhubRipper ripper = new PornhubRipper(new URI("https://www.pornhub.com/album/15680522").toURL());
|
PornhubRipper ripper = new PornhubRipper(new URI("https://www.pornhub.com/album/6299702").toURL());
|
||||||
|
testRipper(ripper);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testPornhubMultiPageAlbumRip() throws IOException, URISyntaxException {
|
||||||
|
if (Utils.getConfigBoolean("test.run_flaky_tests", false)) {
|
||||||
|
PornhubRipper ripper = new PornhubRipper(new URI("https://www.pornhub.com/album/39341891").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,7 +42,7 @@ public class PornhubRipperTest extends RippersTest {
|
|||||||
@Test
|
@Test
|
||||||
@Tag("flaky")
|
@Tag("flaky")
|
||||||
public void testGetNextPage() throws IOException, URISyntaxException {
|
public void testGetNextPage() throws IOException, URISyntaxException {
|
||||||
String baseURL = "https://www.pornhub.com/album/30687901";
|
String baseURL = "https://www.pornhub.com/album/39341891";
|
||||||
PornhubRipper ripper = new PornhubRipper(new URI(baseURL).toURL());
|
PornhubRipper ripper = new PornhubRipper(new URI(baseURL).toURL());
|
||||||
Document page = Http.url(baseURL).get();
|
Document page = Http.url(baseURL).get();
|
||||||
int numPagesRemaining = 1;
|
int numPagesRemaining = 1;
|
||||||
|
Reference in New Issue
Block a user