summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/hotleak.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-04-25 21:32:02 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-04-25 21:32:02 -0400
commitf98ab7aaca3c4acbd5a793267791749740330e9c (patch)
tree72e3d3312a8ff2cdb24353b1d7be6fb8301f431c /gallery_dl/extractor/hotleak.py
parent09e426350409d45e7f7a8ff369f8d8aa9eec0fe4 (diff)
New upstream version 1.25.2.upstream/1.25.2
Diffstat (limited to 'gallery_dl/extractor/hotleak.py')
-rw-r--r--gallery_dl/extractor/hotleak.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gallery_dl/extractor/hotleak.py b/gallery_dl/extractor/hotleak.py
index 7c656be..30158b4 100644
--- a/gallery_dl/extractor/hotleak.py
+++ b/gallery_dl/extractor/hotleak.py
@@ -58,7 +58,7 @@ def decode_video_url(url):
class HotleakPostExtractor(HotleakExtractor):
"""Extractor for individual posts on hotleak"""
subcategory = "post"
- pattern = (BASE_PATTERN + r"/(?!hot|creators|videos|photos)"
+ pattern = (BASE_PATTERN + r"/(?!(?:hot|creators|videos|photos)(?:$|/))"
r"([^/]+)/(photo|video)/(\d+)")
test = (
("https://hotleak.vip/kaiyakawaii/photo/1617145", {
@@ -117,7 +117,8 @@ class HotleakPostExtractor(HotleakExtractor):
class HotleakCreatorExtractor(HotleakExtractor):
"""Extractor for all posts from a hotleak creator"""
subcategory = "creator"
- pattern = BASE_PATTERN + r"/(?!hot|creators|videos|photos)([^/?#]+)/?$"
+ pattern = (BASE_PATTERN + r"/(?!(?:hot|creators|videos|photos)(?:$|/))"
+ r"([^/?#]+)/?$")
test = (
("https://hotleak.vip/kaiyakawaii", {
"range": "1-200",