From 5941fc3ee77ef910b0df3aa1daf42b6266afe674 Mon Sep 17 00:00:00 2001 From: Felipe Marinho Date: Fri, 15 Nov 2024 12:01:16 -0300 Subject: [PATCH] chg: fix: key_error when original_language is unavailable --- scanner/providers/implementations/themoviedatabase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/providers/implementations/themoviedatabase.py b/scanner/providers/implementations/themoviedatabase.py index 0d0ee8ae..277e9be4 100644 --- a/scanner/providers/implementations/themoviedatabase.py +++ b/scanner/providers/implementations/themoviedatabase.py @@ -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