1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 11:12:40 +01:00

[kemonoparty] restore 'favorites' API endpoints (#2994)

This commit is contained in:
Mike Fährmann 2022-10-01 12:14:09 +02:00
parent 5fd4374036
commit 78694a61bb
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -478,7 +478,7 @@ class KemonopartyFavoriteExtractor(KemonopartyExtractor):
if self.favorites == "artist":
users = self.request(
self.root + "/api/v1/account/favorites?type=artist").json()
self.root + "/api/favorites?type=artist").json()
for user in users:
user["_extractor"] = KemonopartyUserExtractor
url = "{}/{}/user/{}".format(
@ -487,7 +487,7 @@ class KemonopartyFavoriteExtractor(KemonopartyExtractor):
elif self.favorites == "post":
posts = self.request(
self.root + "/api/v1/account/favorites?type=post").json()
self.root + "/api/favorites?type=post").json()
for post in posts:
post["_extractor"] = KemonopartyPostExtractor
url = "{}/{}/user/{}/post/{}".format(