aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/e621.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-03-10 03:45:04 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-03-10 03:45:04 -0400
commitb4181aecfa495a0926a9c065bf54897d64b14fbc (patch)
tree1096876572bf7f51488a1a57cb9a5267e571947c /gallery_dl/extractor/e621.py
parent59733b48db6fe610ee4024ce1e93d10e76538087 (diff)
parent243d1f1beb4e4eb75a524f1aff948c47761a4f1d (diff)
Update upstream source from tag 'upstream/1.29.1'
Update to upstream version '1.29.1' with Debian dir 67c32bd8f39b0155ec16fb6af065feb7f1333f75
Diffstat (limited to 'gallery_dl/extractor/e621.py')
-rw-r--r--gallery_dl/extractor/e621.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/gallery_dl/extractor/e621.py b/gallery_dl/extractor/e621.py
index eddcb12..76ea792 100644
--- a/gallery_dl/extractor/e621.py
+++ b/gallery_dl/extractor/e621.py
@@ -100,7 +100,7 @@ class E621PoolExtractor(E621Extractor, danbooru.DanbooruPoolExtractor):
example = "https://e621.net/pools/12345"
def posts(self):
- self.log.info("Fetching posts of pool %s", self.pool_id)
+ self.log.info("Collecting posts of pool %s", self.pool_id)
id_to_post = {
post["id"]: post
@@ -126,7 +126,7 @@ class E621PostExtractor(E621Extractor, danbooru.DanbooruPostExtractor):
example = "https://e621.net/posts/12345"
def posts(self):
- url = "{}/posts/{}.json".format(self.root, self.post_id)
+ url = "{}/posts/{}.json".format(self.root, self.groups[-1])
return (self.request(url).json()["post"],)
@@ -147,11 +147,8 @@ class E621FavoriteExtractor(E621Extractor):
pattern = BASE_PATTERN + r"/favorites(?:\?([^#]*))?"
example = "https://e621.net/favorites"
- def __init__(self, match):
- E621Extractor.__init__(self, match)
- self.query = text.parse_query(match.group(match.lastindex))
-
def metadata(self):
+ self.query = text.parse_query(self.groups[-1])
return {"user_id": self.query.get("user_id", "")}
def posts(self):