aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/motherless.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/motherless.py')
-rw-r--r--gallery_dl/extractor/motherless.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/gallery_dl/extractor/motherless.py b/gallery_dl/extractor/motherless.py
index c20f138..7d5d319 100644
--- a/gallery_dl/extractor/motherless.py
+++ b/gallery_dl/extractor/motherless.py
@@ -93,8 +93,8 @@ class MotherlessExtractor(Extractor):
title = self._extract_group_title(page, gid)
return {
- f"{category}_id": gid,
- f"{category}_title": title,
+ category + "_id": gid,
+ category + "_title": title,
"uploader": text.remove_html(extr(
f'class="{category}-member-username">', "</")),
"count": text.parse_int(
@@ -152,9 +152,9 @@ class MotherlessExtractor(Extractor):
class MotherlessMediaExtractor(MotherlessExtractor):
"""Extractor for a single image/video from motherless.com"""
subcategory = "media"
- pattern = (rf"{BASE_PATTERN}/("
- rf"(?:g/[^/?#]+/|G[IV]?[A-Z0-9]+/)?"
- rf"(?!G)[A-Z0-9]+)")
+ pattern = (BASE_PATTERN +
+ r"/((?:g/[^/?#]+/|G[IV]?[A-Z0-9]+/)?"
+ r"(?!G)[A-Z0-9]+)")
example = "https://motherless.com/ABC123"
def items(self):
@@ -170,7 +170,7 @@ class MotherlessGalleryExtractor(MotherlessExtractor):
directory_fmt = ("{category}", "{uploader}",
"{gallery_id} {gallery_title}")
archive_fmt = "{gallery_id}_{id}"
- pattern = rf"{BASE_PATTERN}/G([IVG])?([A-Z0-9]+)/?$"
+ pattern = BASE_PATTERN + "/G([IVG])?([A-Z0-9]+)/?$"
example = "https://motherless.com/GABC123"
def items(self):
@@ -206,7 +206,7 @@ class MotherlessGroupExtractor(MotherlessExtractor):
directory_fmt = ("{category}", "{uploader}",
"{group_id} {group_title}")
archive_fmt = "{group_id}_{id}"
- pattern = rf"{BASE_PATTERN}/g([iv]?)/?([a-z0-9_]+)/?$"
+ pattern = BASE_PATTERN + "/g([iv]?)/?([a-z0-9_]+)/?$"
example = "https://motherless.com/g/abc123"
def items(self):