mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[20] fix keyError
This commit is contained in:
parent
88903e0c37
commit
7ba5d3b229
4 changed files with 5 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.16.1-develop19
|
||||
1.16.1-develop20
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue