Skip to content

Commit

Permalink
[kemonoparty] update favorites API endpoint (#4522)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Sep 14, 2023
1 parent 27ec653 commit d13c82e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/kemonoparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def items(self):

if self.favorites == "artist":
users = self.request(
self.root + "/api/favorites?type=artist").json()
self.root + "/api/v1/account/favorites?type=artist").json()
for user in users:
user["_extractor"] = KemonopartyUserExtractor
url = "{}/{}/user/{}".format(
Expand All @@ -391,7 +391,7 @@ def items(self):

elif self.favorites == "post":
posts = self.request(
self.root + "/api/favorites?type=post").json()
self.root + "/api/v1/account/favorites?type=post").json()
for post in posts:
post["_extractor"] = KemonopartyPostExtractor
url = "{}/{}/user/{}/post/{}".format(
Expand Down

0 comments on commit d13c82e

Please sign in to comment.