merge #3871: [hotleak] Fix downloading of creators whose name starts with a category name

pull/3322/merge
Mike Fährmann 1 year ago
commit 25949bd767
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -58,7 +58,7 @@ def decode_video_url(url):
class HotleakPostExtractor(HotleakExtractor): class HotleakPostExtractor(HotleakExtractor):
"""Extractor for individual posts on hotleak""" """Extractor for individual posts on hotleak"""
subcategory = "post" subcategory = "post"
pattern = (BASE_PATTERN + r"/(?!hot|creators|videos|photos)" pattern = (BASE_PATTERN + r"/(?!(?:hot|creators|videos|photos)(?:$|/))"
r"([^/]+)/(photo|video)/(\d+)") r"([^/]+)/(photo|video)/(\d+)")
test = ( test = (
("https://hotleak.vip/kaiyakawaii/photo/1617145", { ("https://hotleak.vip/kaiyakawaii/photo/1617145", {
@ -117,7 +117,8 @@ class HotleakPostExtractor(HotleakExtractor):
class HotleakCreatorExtractor(HotleakExtractor): class HotleakCreatorExtractor(HotleakExtractor):
"""Extractor for all posts from a hotleak creator""" """Extractor for all posts from a hotleak creator"""
subcategory = "creator" subcategory = "creator"
pattern = BASE_PATTERN + r"/(?!hot|creators|videos|photos)([^/?#]+)/?$" pattern = (BASE_PATTERN + r"/(?!(?:hot|creators|videos|photos)(?:$|/))"
r"([^/?#]+)/?$")
test = ( test = (
("https://hotleak.vip/kaiyakawaii", { ("https://hotleak.vip/kaiyakawaii", {
"range": "1-200", "range": "1-200",

Loading…
Cancel
Save