[kemonoparty] handle files without 'name' (fixes #2276)

This commit is contained in:
Mike Fährmann
2022-02-08 18:27:05 +01:00
parent 4efe56f419
commit a57a44f510

View File

@@ -100,7 +100,7 @@ class KemonopartyExtractor(Extractor):
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):