Skip to content

Commit

Permalink
fixed the vidble test URL
Browse files Browse the repository at this point in the history
  • Loading branch information
brantspar authored and soloturn committed Jul 17, 2024
1 parent 71e20fe commit e938ac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
Expand All @@ -17,7 +15,6 @@

import com.rarchives.ripme.ripper.AbstractHTMLRipper;
import com.rarchives.ripme.ripper.DownloadThreadPool;
import com.rarchives.ripme.ui.RipStatusMessage.STATUS;
import com.rarchives.ripme.utils.Http;
import com.rarchives.ripme.utils.Utils;
import org.jsoup.select.Elements;
Expand Down Expand Up @@ -72,8 +69,6 @@ protected Document getFirstPage() throws IOException {
@Override
public Document getNextPage(Document doc) throws IOException, URISyntaxException {

Files.write(Paths.get("doc-next-page.txt"), doc.outerHtml().getBytes());

Elements nextPageLink = doc.head().select("link[rel=next]");
if (nextPageLink.isEmpty()) {
throw new IOException("Last page reached");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
public class VidbleRipperTest extends RippersTest {
@Test
public void testVidbleRip() throws IOException, URISyntaxException {
VidbleRipper ripper = new VidbleRipper(new URI("http://www.vidble.com/album/y1oyh3zd").toURL());
VidbleRipper ripper = new VidbleRipper(new URI("https://vidble.com/album/cGEFr8zi").toURL());
testRipper(ripper);
}

@Test
public void testGetGID() throws IOException, URISyntaxException {
URL url = new URI("http://www.vidble.com/album/y1oyh3zd").toURL();
URL url = new URI("https://vidble.com/album/cGEFr8zi").toURL();
VidbleRipper ripper = new VidbleRipper(url);
Assertions.assertEquals("y1oyh3zd", ripper.getGID(url));
Assertions.assertEquals("cGEFr8zi", ripper.getGID(url));
}
}

0 comments on commit e938ac9

Please sign in to comment.