Skip to content

Commit e938ac9

Browse files
brantsparsoloturn
authored andcommitted
fixed the vidble test URL
1 parent 71e20fe commit e938ac9

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

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

-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import java.net.URI;
66
import java.net.URISyntaxException;
77
import java.net.URL;
8-
import java.nio.file.Files;
9-
import java.nio.file.Paths;
108
import java.util.ArrayList;
119
import java.util.List;
1210
import java.util.regex.Matcher;
@@ -17,7 +15,6 @@
1715

1816
import com.rarchives.ripme.ripper.AbstractHTMLRipper;
1917
import com.rarchives.ripme.ripper.DownloadThreadPool;
20-
import com.rarchives.ripme.ui.RipStatusMessage.STATUS;
2118
import com.rarchives.ripme.utils.Http;
2219
import com.rarchives.ripme.utils.Utils;
2320
import org.jsoup.select.Elements;
@@ -72,8 +69,6 @@ protected Document getFirstPage() throws IOException {
7269
@Override
7370
public Document getNextPage(Document doc) throws IOException, URISyntaxException {
7471

75-
Files.write(Paths.get("doc-next-page.txt"), doc.outerHtml().getBytes());
76-
7772
Elements nextPageLink = doc.head().select("link[rel=next]");
7873
if (nextPageLink.isEmpty()) {
7974
throw new IOException("Last page reached");

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
public class VidbleRipperTest extends RippersTest {
1313
@Test
1414
public void testVidbleRip() throws IOException, URISyntaxException {
15-
VidbleRipper ripper = new VidbleRipper(new URI("http://www.vidble.com/album/y1oyh3zd").toURL());
15+
VidbleRipper ripper = new VidbleRipper(new URI("https://vidble.com/album/cGEFr8zi").toURL());
1616
testRipper(ripper);
1717
}
1818

1919
@Test
2020
public void testGetGID() throws IOException, URISyntaxException {
21-
URL url = new URI("http://www.vidble.com/album/y1oyh3zd").toURL();
21+
URL url = new URI("https://vidble.com/album/cGEFr8zi").toURL();
2222
VidbleRipper ripper = new VidbleRipper(url);
23-
Assertions.assertEquals("y1oyh3zd", ripper.getGID(url));
23+
Assertions.assertEquals("cGEFr8zi", ripper.getGID(url));
2424
}
2525
}
2626

0 commit comments

Comments
 (0)