Fix Rinumerazione

This commit is contained in:
Alhaziel
2019-11-09 15:24:22 +01:00
parent 92046ff620
commit 8db0b7e321
+4 -4
View File
@@ -168,7 +168,7 @@ def semiautomatic_config_item(item):
tvdb.find_and_set_infoLabels(item)
item.channel = item.from_channel
dict_series = jsontools.get_node_from_file(item.channel, TAG_TVSHOW_RENUMERATE)
title = item.show
title = item.show if item.show else item.fulltitle
# Trova l'ID della serie
while not item.infoLabels['tvdb_id']:
@@ -248,7 +248,7 @@ def semiautomatic_config_item(item):
def config_item(item, itemlist=[], typography='', active=False):
log()
# Configurazione Automatica, Tenta la numerazione Automatica degli episodi
title = item.fulltitle
title = item.show if item.show else item.fulltitle
dict_series = jsontools.get_node_from_file(item.channel, TAG_TVSHOW_RENUMERATE)
try: ID = dict_series[item.show.rstrip()][TAG_ID]
@@ -298,7 +298,7 @@ def renumber(itemlist, item='', typography=''):
if item:
item.channel = item.from_channel if item.from_channel else item.channel
# Controlla se la Serie è già stata rinumerata
TITLE = item.fulltitle.rstrip() if item.fulltitle else item.contentTitle
TITLE = item.show.rstrip() if item.show else item.contentTitle
if inspect.stack()[2][3] == 'find_episodes':
return itemlist
@@ -534,7 +534,7 @@ def error(itemlist):
def check(item):
try:
dict_series = jsontools.get_node_from_file(item.channel, TAG_TVSHOW_RENUMERATE)
TITLE = item.fulltitle.rstrip()
TITLE = item.show.rstrip()
dict_series[TITLE][TAG_ID]
dict_series[TITLE][TAG_EPISODE]
exist = True