diff options
Diffstat (limited to 'gallery_dl/extractor/leakgallery.py')
| -rw-r--r-- | gallery_dl/extractor/leakgallery.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gallery_dl/extractor/leakgallery.py b/gallery_dl/extractor/leakgallery.py index 2939304..d119ac6 100644 --- a/gallery_dl/extractor/leakgallery.py +++ b/gallery_dl/extractor/leakgallery.py @@ -35,7 +35,7 @@ class LeakgalleryExtractor(Extractor): else: media["creator"] = creator - media["url"] = url = f"https://cdn.leakgallery.com/{path}" + media["url"] = url = "https://cdn.leakgallery.com/" + path text.nameext_from_url(url, media) yield Message.Directory, "", media yield Message.Url, url, media @@ -43,7 +43,7 @@ class LeakgalleryExtractor(Extractor): def _pagination(self, type, base, params=None, creator=None, pnum=1): while True: try: - data = self.request_json(f"{base}{pnum}", params=params) + data = self.request_json(base + str(pnum), params=params) if not data: return @@ -81,7 +81,7 @@ class LeakgalleryUserExtractor(LeakgalleryExtractor): class LeakgalleryTrendingExtractor(LeakgalleryExtractor): """Extractor for trending posts on leakgallery.com""" subcategory = "trending" - pattern = rf"{BASE_PATTERN}/trending-medias(?:/([\w-]+))?" + pattern = BASE_PATTERN + r"/trending-medias(?:/([\w-]+))?" example = "https://leakgallery.com/trending-medias/Week" def items(self): @@ -93,7 +93,7 @@ class LeakgalleryTrendingExtractor(LeakgalleryExtractor): class LeakgalleryMostlikedExtractor(LeakgalleryExtractor): """Extractor for most liked posts on leakgallery.com""" subcategory = "mostliked" - pattern = rf"{BASE_PATTERN}/most-liked" + pattern = BASE_PATTERN + r"/most-liked" example = "https://leakgallery.com/most-liked" def items(self): @@ -104,7 +104,7 @@ class LeakgalleryMostlikedExtractor(LeakgalleryExtractor): class LeakgalleryPostExtractor(LeakgalleryExtractor): """Extractor for individual posts on leakgallery.com""" subcategory = "post" - pattern = rf"{BASE_PATTERN}/([^/?#]+)/(\d+)" + pattern = BASE_PATTERN + r"/([^/?#]+)/(\d+)" example = "https://leakgallery.com/CREATOR/12345" def items(self): |
