update extractor test results

This commit is contained in:
Mike Fährmann
2021-03-28 23:06:44 +02:00
parent 1a540fbe00
commit ddd48ceee5
6 changed files with 12 additions and 15 deletions

View File

@@ -85,14 +85,14 @@ class EromeAlbumExtractor(EromeExtractor):
"""Extractor for albums on erome.com""" """Extractor for albums on erome.com"""
subcategory = "album" subcategory = "album"
pattern = BASE_PATTERN + r"/a/(\w+)" pattern = BASE_PATTERN + r"/a/(\w+)"
test = ("https://www.erome.com/a/KandxY7y", { test = ("https://www.erome.com/a/TyFMI7ik", {
"pattern": r"https://s\d+\.erome\.com/355/KandxY7y/\w+", "pattern": r"https://s\d+\.erome\.com/\d+/TyFMI7ik/\w+",
"count": 26, "count": 9,
"keyword": { "keyword": {
"album_id": "KandxY7y", "album_id": "TyFMI7ik",
"num": int, "num": int,
"title": "Therealbrittfitt", "title": "Ryan Ryans",
"user": "pokow", "user": "xanub",
}, },
}) })
@@ -103,7 +103,7 @@ class EromeAlbumExtractor(EromeExtractor):
class EromeUserExtractor(EromeExtractor): class EromeUserExtractor(EromeExtractor):
subcategory = "user" subcategory = "user"
pattern = BASE_PATTERN + r"/(?!a/|search\?)([^/?#]+)" pattern = BASE_PATTERN + r"/(?!a/|search\?)([^/?#]+)"
test = ("https://www.erome.com/gutiquq", { test = ("https://www.erome.com/xanub", {
"range": "1-25", "range": "1-25",
"count": 25, "count": 25,
}) })

View File

@@ -193,7 +193,7 @@ class PhilomenaGalleryExtractor(PhilomenaExtractor):
}, },
}), }),
("https://ponybooru.org/galleries/27", { ("https://ponybooru.org/galleries/27", {
"count": 24, "count": ">= 24",
}), }),
) )

View File

@@ -15,7 +15,7 @@ BASE_PATTERN = r"(?:https?://)?tapas\.io"
class TapasExtractor(Extractor): class TapasExtractor(Extractor):
"""Extractor for manga-chapters from tapas.io""" """Base class for tapas.io extractors"""
category = "tapas" category = "tapas"
root = "https://tapas.io" root = "https://tapas.io"
directory_fmt = ("{category}", "{series[title]}", "{id} {title}") directory_fmt = ("{category}", "{series[title]}", "{id} {title}")
@@ -144,7 +144,7 @@ class TapasEpisodeExtractor(TapasExtractor):
"title": "You are a Tomb Raider (2)", "title": "You are a Tomb Raider (2)",
"unlock_cnt": 0, "unlock_cnt": 0,
"unlocked": False, "unlocked": False,
"view_cnt": 627, "view_cnt": int,
"series": { "series": {
"genre": dict, "genre": dict,

View File

@@ -257,9 +257,6 @@ class TumblrPostExtractor(TumblrExtractor):
("https://mikf123.tumblr.com/post/167623351559/link-post", { ("https://mikf123.tumblr.com/post/167623351559/link-post", {
"count": 2, "count": 2,
}), }),
("https://muyanna.tumblr.com/post/180692431632/answer-post", {
"count": 1,
}),
("https://mikf123.tumblr.com/post/167633596145/video-post", { ("https://mikf123.tumblr.com/post/167633596145/video-post", {
"count": 2, "count": 2,
}), }),

View File

@@ -69,7 +69,7 @@ class UnsplashImageExtractor(UnsplashExtractor):
subcategory = "image" subcategory = "image"
pattern = BASE_PATTERN + r"/photos/([^/?#]+)" pattern = BASE_PATTERN + r"/photos/([^/?#]+)"
test = ("https://unsplash.com/photos/lsoogGC_5dg", { test = ("https://unsplash.com/photos/lsoogGC_5dg", {
"url": "00accb0a64d5a0df0db911f8b425892718dce524", "url": "ac9d194f58b3fc9aacdfc9784c1b69868f212b6e",
"keyword": { "keyword": {
"alt_description": "re:silhouette of trees near body of water ", "alt_description": "re:silhouette of trees near body of water ",
"blur_hash": "LZP4uQS4jboe%#o0WCa}2doJNaaz", "blur_hash": "LZP4uQS4jboe%#o0WCa}2doJNaaz",

View File

@@ -72,7 +72,7 @@ class WikiartArtistExtractor(WikiartExtractor):
pattern = BASE_PATTERN + r"/(?!\w+-by-)([\w-]+)/?$" pattern = BASE_PATTERN + r"/(?!\w+-by-)([\w-]+)/?$"
test = ("https://www.wikiart.org/en/thomas-cole", { test = ("https://www.wikiart.org/en/thomas-cole", {
"url": "5ba2fbe6783fcce34e65014d16e5fbc581490c98", "url": "5ba2fbe6783fcce34e65014d16e5fbc581490c98",
"keyword": "6d92913c55675e05553f000cfee5daff0b4107cf", "keyword": "eb5b141cf33e6d279afd1518aae24e61cc0adf81",
}) })
def __init__(self, match): def __init__(self, match):