aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/fantia.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-07-31 01:22:07 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-07-31 01:22:07 -0400
commitd9539f96cc7ac112b7d8faad022190fbbc88c745 (patch)
tree471249d60b9202c00d7d82abec8b296fc881292e /gallery_dl/extractor/fantia.py
parent889fc15f272118bf277737b6fac29d3faeffc641 (diff)
parenta6e995c093de8aae2e91a0787281bb34c0b871eb (diff)
Update upstream source from tag 'upstream/1.30.2'
Update to upstream version '1.30.2' with Debian dir f0dcd28a671f8600479182ff128e05ba8904a0d8
Diffstat (limited to 'gallery_dl/extractor/fantia.py')
-rw-r--r--gallery_dl/extractor/fantia.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gallery_dl/extractor/fantia.py b/gallery_dl/extractor/fantia.py
index 6218f19..e32a86b 100644
--- a/gallery_dl/extractor/fantia.py
+++ b/gallery_dl/extractor/fantia.py
@@ -93,7 +93,7 @@ class FantiaExtractor(Extractor):
def _get_post_data(self, post_id):
"""Fetch and process post data"""
url = self.root+"/api/v1/posts/"+post_id
- resp = self.request(url, headers=self.headers).json()["post"]
+ resp = self.request_json(url, headers=self.headers)["post"]
return {
"post_id": resp["id"],
"post_url": self.root + "/posts/" + str(resp["id"]),
@@ -181,10 +181,10 @@ class FantiaCreatorExtractor(FantiaExtractor):
def __init__(self, match):
FantiaExtractor.__init__(self, match)
- self.creator_id = match.group(1)
+ self.creator_id = match[1]
def posts(self):
- url = "{}/fanclubs/{}/posts".format(self.root, self.creator_id)
+ url = f"{self.root}/fanclubs/{self.creator_id}/posts"
return self._pagination(url)
@@ -196,7 +196,7 @@ class FantiaPostExtractor(FantiaExtractor):
def __init__(self, match):
FantiaExtractor.__init__(self, match)
- self.post_id = match.group(1)
+ self.post_id = match[1]
def posts(self):
self._csrf_token()