chg: fix: key_error when original_language is unavailable

This commit is contained in:
Felipe Marinho 2024-11-15 12:01:16 -03:00 committed by Zoe Roux
parent f121b718a9
commit 5941fc3ee7
No known key found for this signature in database

View File

@ -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