Fix trakt
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user