Fix Trakt e servertools

This commit is contained in:
Alhaziel01
2021-01-25 18:51:03 +01:00
parent 3f680ccd40
commit d8d645fcbb
2 changed files with 11 additions and 3 deletions

View File

@@ -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

View File

@@ -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"])