[kemonoparty] fix KeyError for empty files (#5368)

This commit is contained in:
Mike Fährmann
2024-03-24 02:21:38 +01:00
parent c3bafd6a2b
commit 15a4bc2584
3 changed files with 12 additions and 2 deletions

View File

@@ -248,6 +248,16 @@ __tests__ = (
"published": "2022-07-29T21:12:11.483000",
},
{
"#url" : "https://kemono.su/gumroad/user/3267960360326/post/jwwag",
"#comment" : "empty 'file' with no 'path' (#5368)",
"#category": ("", "kemonoparty", "gumroad"),
"#class" : kemonoparty.KemonopartyPostExtractor,
"#count" : 8,
"type" : "attachment",
},
{
"#url" : "https://kemono.su/discord/server/488668827274444803#608504710906904576",
"#category": ("", "kemonoparty", "discord"),