[kemonoparty] update favorites API endpoint (#4522)

This commit is contained in:
Mike Fährmann
2023-09-14 14:57:01 +02:00
parent 27ec653991
commit d13c82eff1

View File

@@ -382,7 +382,7 @@ class KemonopartyFavoriteExtractor(KemonopartyExtractor):
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(
@@ -391,7 +391,7 @@ class KemonopartyFavoriteExtractor(KemonopartyExtractor):
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(