remove test results in extractor modules

and add generic example URLs
This commit is contained in:
Mike Fährmann
2023-09-11 16:30:55 +02:00
parent a833c244c8
commit a453335a9f
176 changed files with 656 additions and 9554 deletions

View File

@@ -107,16 +107,7 @@ class TapasExtractor(Extractor):
class TapasSeriesExtractor(TapasExtractor):
subcategory = "series"
pattern = BASE_PATTERN + r"/series/([^/?#]+)"
test = (
("https://tapas.io/series/just-leave-me-be", {
"pattern": r"https://\w+\.cloudfront\.net/pc/\w\w/[0-9a-f-]+\.jpg",
"count": 132,
}),
# mature
("https://tapas.io/series/yona", {
"count": 26,
}),
)
example = "https://tapas.io/series/TITLE"
def __init__(self, match):
TapasExtractor.__init__(self, match)
@@ -152,53 +143,7 @@ class TapasSeriesExtractor(TapasExtractor):
class TapasEpisodeExtractor(TapasExtractor):
subcategory = "episode"
pattern = BASE_PATTERN + r"/episode/(\d+)"
test = ("https://tapas.io/episode/2068651", {
"url": "0b53644c864a0a097f65accea6bb620be9671078",
"pattern": "^text:",
"keyword": {
"book": True,
"comment_cnt": int,
"date": "dt:2021-02-23 16:02:07",
"early_access": False,
"escape_title": "You are a Tomb Raider (2)",
"free": True,
"id": 2068651,
"like_cnt": int,
"liked": bool,
"mature": False,
"next_ep_id": 2068652,
"nsfw": False,
"nu": False,
"num": 1,
"open_comments": True,
"pending_scene": 2,
"prev_ep_id": 2068650,
"publish_date": "2021-02-23T16:02:07Z",
"read": bool,
"related_ep_id": None,
"relative_publish_date": "Feb 23, 2021",
"scene": 2,
"scheduled": False,
"title": "You are a Tomb Raider (2)",
"unlock_cnt": 0,
"unlocked": False,
"view_cnt": int,
"series": {
"genre": dict,
"has_book_cover": True,
"has_top_banner": True,
"id": 199931,
"premium": True,
"sale_type": "PAID",
"subscribed": bool,
"thumbsup_cnt": int,
"title": "Tomb Raider King",
"type": "BOOKS",
"url": "tomb-raider-king-novel",
},
},
})
example = "https://tapas.io/episode/12345"
def __init__(self, match):
TapasExtractor.__init__(self, match)