mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 13:14:29 -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 = [
|
localized_images = [
|
||||||
image
|
image
|
||||||
for image in item["images"][key]
|
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
|
# Step 3: If still no images, use any available images
|
||||||
|
Loading…
x
Reference in New Issue
Block a user