From b281639ed34fc873562f4f6c7788de95f6aa16bd Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 17 Sep 2021 22:07:30 -0400 Subject: [PATCH] fix for no id --- modules/trakt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/trakt.py b/modules/trakt.py index ee5772ac..1bec27c6 100644 --- a/modules/trakt.py +++ b/modules/trakt.py @@ -158,7 +158,7 @@ class Trakt: else: continue id_type = "tmdb" if current_type == "movie" else "tvdb" - if data["ids"][id_type]: + if id_type in data["ids"] and data["ids"][id_type]: final_id = data["ids"][id_type] if current_type == "episode": final_id = f"{final_id}_{item[current_type]['season']}"