diff --git a/core/servertools.py b/core/servertools.py index bd5877c0..04e38f75 100644 --- a/core/servertools.py +++ b/core/servertools.py @@ -476,7 +476,7 @@ def get_server_parameters(server): if not server: return {} - if server not in dict_servers_parameters: + if server not in dict_servers_parameters and server not in ['servers']: try: path = '' # Servers diff --git a/specials/tvmoviedb.py b/specials/tvmoviedb.py index 520e6d06..a19b2a1f 100644 --- a/specials/tvmoviedb.py +++ b/specials/tvmoviedb.py @@ -1963,9 +1963,17 @@ def acciones_trakt(item): ratings = [] try: for entry in data: - try: entry = entry[item.args] - except: pass + # try: entry = entry[item.args] + # except: pass new_item = item.clone(action="details") + if 'show' in entry or 'show' in item.args: + entry = entry['show'] + new_item.args = 'show' + new_item.contentType = 'tvshow' + else: + entry = entry['movie'] + 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"])