mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-09-02 10:23:47 +02:00
listalripper with _ in url test
fixes https://github.com/RipMeApp/ripme/issues/1943
This commit is contained in:
@@ -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 p1 = Pattern.compile("https:\\/\\/www.listal.com\\/list\\/([a-zA-Z0-9-]+)");
|
||||||
private Pattern p2 =
|
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 listId = null; // listId to get more images via POST.
|
||||||
private String postUrl = "https://www.listal.com/item-list/"; //to load more images.
|
private String postUrl = "https://www.listal.com/item-list/"; //to load more images.
|
||||||
private UrlType urlType = UrlType.UNKNOWN;
|
private UrlType urlType = UrlType.UNKNOWN;
|
||||||
|
@@ -3,6 +3,7 @@ package com.rarchives.ripme.tst.ripper.rippers;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import com.rarchives.ripme.ripper.rippers.ListalRipper;
|
import com.rarchives.ripme.ripper.rippers.ListalRipper;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
public class ListalRipperTest extends RippersTest {
|
public class ListalRipperTest extends RippersTest {
|
||||||
|
|
||||||
@@ -10,6 +11,18 @@ public class ListalRipperTest extends RippersTest {
|
|||||||
* Test for list type url.
|
* Test for list type url.
|
||||||
* @throws IOException
|
* @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 {
|
public void testRipListType() throws IOException {
|
||||||
ListalRipper ripper =
|
ListalRipper ripper =
|
||||||
new ListalRipper(new URL("https://www.listal.com/list/evolution-emma-stone"));
|
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.
|
* Test for folder type url.
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testRipFolderType() throws IOException {
|
public void testRipFolderType() throws IOException {
|
||||||
ListalRipper ripper =
|
ListalRipper ripper =
|
||||||
new ListalRipper(new URL("https://www.listal.com/chet-atkins/pictures"));
|
new ListalRipper(new URL("https://www.listal.com/chet-atkins/pictures"));
|
||||||
|
Reference in New Issue
Block a user