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:
parent
5fd4374036
commit
78694a61bb
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user