Skip to content

Commit

Permalink
[kemonoparty] handle files without 'name' (fixes #2276)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Feb 8, 2022
1 parent 4efe56f commit a57a44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/kemonoparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def items(self):
elif url.startswith(self.root):
url = self.root + "/data" + url[20:]

text.nameext_from_url(file["name"], post)
text.nameext_from_url(file.get("name", url), post)
yield Message.Url, url, post

def login(self):
Expand Down

0 comments on commit a57a44f

Please sign in to comment.