From b3eff4bb07f3a390abf7a547867100bdb3b61eda Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Tue, 13 Jul 2021 12:15:07 +0200 Subject: [PATCH] Fix trakt --- specials/tvmoviedb.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/specials/tvmoviedb.py b/specials/tvmoviedb.py index 09f1bb53..0853a331 100644 --- a/specials/tvmoviedb.py +++ b/specials/tvmoviedb.py @@ -1968,14 +1968,20 @@ def acciones_trakt(item): # try: entry = entry[item.args] # except: pass new_item = item.clone(action="details") - if 'show' in entry or 'show' in item.args: + if 'show' in entry and 'show' in item.args: entry = entry['show'] new_item.args = 'show' new_item.contentType = 'tvshow' - else: + elif 'movie' in entry and 'movie' in item.args: entry = entry['movie'] new_item.args = 'movie' new_item.contentType = 'movie' + elif 'show' in item.args: + new_item.args = 'show' + new_item.contentType = 'tvshow' + else: + new_item.args = 'movie' + new_item.contentType = 'movie' new_item.title = entry["title"] + " (%s)" % entry["year"] new_item.infoLabels["tmdb_id"] = entry["ids"]["tmdb"] try: ratings.append(entry["rating"])