From d744235141eb04225a68dffbf468aabfd2abd0c5 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 31 May 2024 18:06:18 +0200 Subject: [PATCH] Fix tmdb search popularity filter (#521) --- scanner/providers/implementations/themoviedatabase.py | 2 +- scanner/providers/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scanner/providers/implementations/themoviedatabase.py b/scanner/providers/implementations/themoviedatabase.py index 7b2675a4..fc9483a6 100644 --- a/scanner/providers/implementations/themoviedatabase.py +++ b/scanner/providers/implementations/themoviedatabase.py @@ -547,7 +547,7 @@ class TheMovieDatabase(Provider): # Ignore totally unpopular shows or unknown ones. # sorted is stable and False str: # For now, the API of kyoo only support one language so we remove the others. -default_languages = os.environ["LIBRARY_LANGUAGES"].split(",") +default_languages = os.environ.get("LIBRARY_LANGUAGES", "").split(",") def sort_translations(