mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
chg: fix: key_error when original_language is unavailable
This commit is contained in:
parent
f121b718a9
commit
5941fc3ee7
@ -172,7 +172,7 @@ class TheMovieDatabase(Provider):
|
||||
localized_images = [
|
||||
image
|
||||
for image in item["images"][key]
|
||||
if image.get("iso_639_1") == item["original_language"]
|
||||
if image.get("iso_639_1") == item.get("original_language")
|
||||
]
|
||||
|
||||
# Step 3: If still no images, use any available images
|
||||
|
Loading…
x
Reference in New Issue
Block a user