From 7ba5d3b229a1e8ec396104f876d83a8a6f25b7c3 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 14 Mar 2022 17:30:30 -0400 Subject: [PATCH] [20] fix keyError --- VERSION | 2 +- modules/cache.py | 2 ++ modules/plex.py | 1 + modules/sonarr.py | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 2de0db69..2f6d98f8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.1-develop19 +1.16.1-develop20 diff --git a/modules/cache.py b/modules/cache.py index 82983b50..d78b07d0 100644 --- a/modules/cache.py +++ b/modules/cache.py @@ -493,6 +493,8 @@ class Cache: tmdb_dict["status"] = row["status"] if row["status"] else None tmdb_dict["type"] = row["type"] if row["type"] else None tmdb_dict["tvdb_id"] = row["tvdb_id"] if row["tvdb_id"] else None + tmdb_dict["countries"] = row["countries"] if row["countries"] else None + tmdb_dict["seasons"] = row["seasons"] if row["seasons"] else None datetime_object = datetime.strptime(row["expiration_date"], "%Y-%m-%d") time_between_insertion = datetime.now() - datetime_object expired = time_between_insertion.days > expiration diff --git a/modules/plex.py b/modules/plex.py index 8d10349e..996e9865 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -793,6 +793,7 @@ class Plex(Library): def get_filter_items(self, uri_args): key = f"/library/sections/{self.Plex.key}/all{uri_args}" + logger.debug(key) return self.Plex._search(key, None, 0, plexapi.X_PLEX_CONTAINER_SIZE) def get_collection_name_and_items(self, collection, smart_label_collection): diff --git a/modules/sonarr.py b/modules/sonarr.py index e1bc3c17..0195427b 100644 --- a/modules/sonarr.py +++ b/modules/sonarr.py @@ -110,7 +110,7 @@ class Sonarr: invalid.extend(_i) except ArrException as e: logger.stacktrace() - raise Failed(f"Radarr Error: {e}") + raise Failed(f"Sonarr Error: {e}") for i, item in enumerate(tvdb_ids, 1): path = item[1] if isinstance(item, tuple) else None