aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/erome.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:25:00 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:25:00 -0500
commit77589574c157fbf651dd251079cd02f6e282e623 (patch)
tree3765f27e6b5fe6c5050fa952347c686021718606 /gallery_dl/extractor/erome.py
parentd4b96bc46d493f54e12c06d98115fccaab1b7ed2 (diff)
parent385e4bfb1e426d23417ac788a6f44d639e226c89 (diff)
Update upstream source from tag 'upstream/1.31.2'
Update to upstream version '1.31.2' with Debian dir 4ebe0ca706fc53eceb778881b680572ca5a0231c
Diffstat (limited to 'gallery_dl/extractor/erome.py')
-rw-r--r--gallery_dl/extractor/erome.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/gallery_dl/extractor/erome.py b/gallery_dl/extractor/erome.py
index 2c9ab47..d01d00a 100644
--- a/gallery_dl/extractor/erome.py
+++ b/gallery_dl/extractor/erome.py
@@ -25,10 +25,10 @@ class EromeExtractor(Extractor):
_cookies = True
def items(self):
- base = f"{self.root}/a/"
+ base = self.root + "/a/"
data = {"_extractor": EromeAlbumExtractor}
for album_id in self.albums():
- yield Message.Queue, f"{base}{album_id}", data
+ yield Message.Queue, base + album_id, data
def albums(self):
return ()
@@ -64,7 +64,7 @@ class EromeExtractor(Extractor):
class EromeAlbumExtractor(EromeExtractor):
"""Extractor for albums on erome.com"""
subcategory = "album"
- pattern = rf"{BASE_PATTERN}/a/(\w+)"
+ pattern = BASE_PATTERN + r"/a/(\w+)"
example = "https://www.erome.com/a/ID"
def items(self):
@@ -121,7 +121,7 @@ class EromeAlbumExtractor(EromeExtractor):
class EromeUserExtractor(EromeExtractor):
subcategory = "user"
- pattern = rf"{BASE_PATTERN}/(?!a/|search\?)([^/?#]+)(?:/?\?([^#]+))?"
+ pattern = BASE_PATTERN + r"/(?!a/|search\?)([^/?#]+)(?:/?\?([^#]+))?"
example = "https://www.erome.com/USER"
def albums(self):
@@ -137,11 +137,11 @@ class EromeUserExtractor(EromeExtractor):
class EromeSearchExtractor(EromeExtractor):
subcategory = "search"
- pattern = rf"{BASE_PATTERN}/search/?\?(q=[^#]+)"
+ pattern = BASE_PATTERN + r"/search/?\?(q=[^#]+)"
example = "https://www.erome.com/search?q=QUERY"
def albums(self):
- url = f"{self.root}/search"
+ url = self.root + "/search"
params = text.parse_query(self.groups[0])
return self._pagination(url, params)