1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[luscious] fix IndexError for files without thumbnail (#5122)

This commit is contained in:
Mike Fährmann 2024-01-28 01:43:29 +01:00
parent 22647c2626
commit 62d6f5f8d2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -63,7 +63,11 @@ class LusciousAlbumExtractor(LusciousExtractor):
image["num"] = num
image["album"] = album
image["thumbnail"] = image.pop("thumbnails")[0]["url"]
try:
image["thumbnail"] = image.pop("thumbnails")[0]["url"]
except LookupError:
image["thumbnail"] = ""
image["tags"] = [item["text"] for item in image["tags"]]
image["date"] = text.parse_timestamp(image["created"])
image["id"] = text.parse_int(image["id"])