Trakt Miglioramento Grafico
This commit is contained in:
+4
-4
@@ -196,9 +196,10 @@ def get_trakt_watched(id_type, mediatype, update=False):
|
|||||||
|
|
||||||
|
|
||||||
def trakt_check(itemlist):
|
def trakt_check(itemlist):
|
||||||
|
from core.support import typo
|
||||||
id_result = ''
|
id_result = ''
|
||||||
# check = u'\u221a'
|
# check = u'\u221a'
|
||||||
check = 'v'
|
check = typo(u'\u221a','[] color kod bold')+' '
|
||||||
synced = False
|
synced = False
|
||||||
try:
|
try:
|
||||||
for item in itemlist:
|
for item in itemlist:
|
||||||
@@ -220,7 +221,7 @@ def trakt_check(itemlist):
|
|||||||
id_result = get_trakt_watched(id_type, mediatype)
|
id_result = get_trakt_watched(id_type, mediatype)
|
||||||
if info['mediatype'] == 'movie':
|
if info['mediatype'] == 'movie':
|
||||||
if info[id_type + '_id'] in id_result:
|
if info[id_type + '_id'] in id_result:
|
||||||
item.title = '[COLOR limegreen][%s][/COLOR] %s' % (check, item.title)
|
item.title = check + item.title
|
||||||
|
|
||||||
elif info['mediatype'] == 'episode':
|
elif info['mediatype'] == 'episode':
|
||||||
if info[id_type + '_id'] in id_result:
|
if info[id_type + '_id'] in id_result:
|
||||||
@@ -235,8 +236,7 @@ def trakt_check(itemlist):
|
|||||||
season_watched = id_result[id][season]
|
season_watched = id_result[id][season]
|
||||||
|
|
||||||
if episode in season_watched:
|
if episode in season_watched:
|
||||||
item.title = '[B][COLOR limegreen][[I]%s[/I]][/COLOR][/B] %s' % (check,
|
item.title = check + item.title
|
||||||
item.title)
|
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user