From 89d972ff5dd35da91b6ec8972d5903862ab8734b Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 23 Jan 2023 14:16:13 -0500 Subject: [PATCH] [15] Fix for #1277 --- VERSION | 2 +- modules/config.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 7eeb859c..853c9f50 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop14 +1.18.3-develop15 diff --git a/modules/config.py b/modules/config.py index 99b6007e..524b9178 100644 --- a/modules/config.py +++ b/modules/config.py @@ -448,7 +448,8 @@ class ConfigFile: "language": check_for_attribute(self.data, "language", parent="tmdb", default="en"), "expiration": check_for_attribute(self.data, "cache_expiration", parent="tmdb", var_type="int", default=60, int_min=1) }) - region = check_for_attribute(self.data, "region", parent="tmdb", test_list=self.TMDb.iso_3166_1, default_is_none=True) + regions = {k.upper(): v for k, v in self.TMDb.iso_3166_1.items()} + region = check_for_attribute(self.data, "region", parent="tmdb", test_list=regions, default_is_none=True) self.TMDb.region = str(region).upper() if region else region logger.info(f"TMDb Connection {'Failed' if self.TMDb is None else 'Successful'}") else: