1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-31 09:32:01 +02:00

listalripper with _ in url test

fixes https://github.com/RipMeApp/ripme/issues/1943
This commit is contained in:
soloturn
2022-01-17 00:43:48 +01:00
parent 53248d943e
commit 045084524d
2 changed files with 15 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ public class ListalRipper extends AbstractHTMLRipper {
private Pattern p1 = Pattern.compile("https:\\/\\/www.listal.com\\/list\\/([a-zA-Z0-9-]+)");
private Pattern p2 =
Pattern.compile("https:\\/\\/www.listal.com\\/((?:(?:[a-zA-Z0-9-]+)\\/?)+)");
Pattern.compile("https:\\/\\/www.listal.com\\/((?:(?:[a-zA-Z0-9-_%]+)\\/?)+)");
private String listId = null; // listId to get more images via POST.
private String postUrl = "https://www.listal.com/item-list/"; //to load more images.
private UrlType urlType = UrlType.UNKNOWN;

View File

@@ -3,6 +3,7 @@ package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.ListalRipper;
import org.junit.jupiter.api.Test;
public class ListalRipperTest extends RippersTest {
@@ -10,6 +11,18 @@ public class ListalRipperTest extends RippersTest {
* Test for list type url.
* @throws IOException
*/
@Test
public void testPictures() throws IOException {
ListalRipper ripper =
new ListalRipper(new URL("https://www.listal.com/emma-stone_iii/pictures"));
testRipper(ripper);
}
/**
* Test for list type url.
* @throws IOException
*/
@Test
public void testRipListType() throws IOException {
ListalRipper ripper =
new ListalRipper(new URL("https://www.listal.com/list/evolution-emma-stone"));
@@ -20,6 +33,7 @@ public class ListalRipperTest extends RippersTest {
* Test for folder type url.
* @throws IOException
*/
@Test
public void testRipFolderType() throws IOException {
ListalRipper ripper =
new ListalRipper(new URL("https://www.listal.com/chet-atkins/pictures"));