From 6af8d71da6391d33cfd3a9c94033492afa8bd757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 29 Dec 2021 18:34:36 +0100 Subject: [PATCH] [kemonoparty] use service as subcategory (closes #2147) --- gallery_dl/extractor/kemonoparty.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py index 77e268fe..f1d7bcf0 100644 --- a/gallery_dl/extractor/kemonoparty.py +++ b/gallery_dl/extractor/kemonoparty.py @@ -205,8 +205,9 @@ class KemonopartyUserExtractor(KemonopartyExtractor): ) def __init__(self, match): - KemonopartyExtractor.__init__(self, match) _, service, user_id, offset = match.groups() + self.subcategory = service + KemonopartyExtractor.__init__(self, match) self.api_url = "{}/api/{}/user/{}".format(self.root, service, user_id) self.user_url = "{}/{}/user/{}".format(self.root, service, user_id) self.offset = text.parse_int(offset) @@ -247,7 +248,7 @@ class KemonopartyPostExtractor(KemonopartyExtractor): "published": "Sun, 11 Aug 2019 02:09:04 GMT", "service": "fanbox", "shared_file": False, - "subcategory": "post", + "subcategory": "fanbox", "title": "c96取り置き", "type": "file", "user": "6993449", @@ -296,8 +297,9 @@ class KemonopartyPostExtractor(KemonopartyExtractor): ) def __init__(self, match): - KemonopartyExtractor.__init__(self, match) _, service, user_id, post_id = match.groups() + self.subcategory = service + KemonopartyExtractor.__init__(self, match) self.api_url = "{}/api/{}/user/{}/post/{}".format( self.root, service, user_id, post_id) self.user_url = "{}/{}/user/{}".format(self.root, service, user_id)