Skip to content

Commit

Permalink
[kemonoparty] handle 'discord' favorites (#6706)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Dec 22, 2024
1 parent de9442b commit 081856b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gallery_dl/extractor/kemonoparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,15 @@ def items(self):
reverse=(order == "desc"))

for user in users:
user["_extractor"] = KemonopartyUserExtractor
url = "{}/{}/user/{}".format(
self.root, user["service"], user["id"])
service = user["service"]
if service == "discord":
user["_extractor"] = KemonopartyDiscordServerExtractor
url = "{}/discord/server/{}".format(
self.root, user["id"])
else:
user["_extractor"] = KemonopartyUserExtractor
url = "{}/{}/user/{}".format(
self.root, service, user["id"])
yield Message.Queue, url, user

elif type == "post":
Expand Down

0 comments on commit 081856b

Please sign in to comment.