Alcune migliorie

This commit is contained in:
mac12m99
2021-05-12 21:17:57 +02:00
parent 9b70993ad6
commit c48e15d55d
4 changed files with 16 additions and 20 deletions
+7 -10
View File
@@ -89,21 +89,18 @@ def update(path, p_dialog, i, t, serie, overwrite):
# serie.infoLabels['playcount'] = serie.playcount
insertados_total += insertados
except Exception as ex:
except:
import traceback
logger.error("Error when saving the chapters of the series")
template = "An exception of type %s occured. Arguments:\n%r"
message = template % (type(ex).__name__, ex.args)
logger.error(message)
logger.error(traceback.format_exc())
except Exception as ex:
except:
import traceback
logger.error("Error in obtaining the episodes of: %s" % serie.show)
template = "An exception of type %s occured. Arguments:\n%r"
message = template % (type(ex).__name__, ex.args)
logger.error(message)
logger.error(traceback.format_exc())
else:
logger.debug("Channel %s not active is not updated" % serie.channel)
# Synchronize the episodes seen from the Kodi video library with that of KoD
try:
if config.is_xbmc(): # If it's Kodi, we do it
@@ -127,7 +124,7 @@ def check_for_update(overwrite=True):
if config.get_setting("update", "videolibrary") != 0 or overwrite:
config.set_setting("updatelibrary_last_check", hoy.strftime('%Y-%m-%d'), "videolibrary")
heading = config.get_localized_string(60389)
heading = config.get_localized_string(60601)
p_dialog = platformtools.dialog_progress_bg(config.get_localized_string(20000), heading)
p_dialog.update(0, '')
show_list = []