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:
parent
22647c2626
commit
62d6f5f8d2
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user