Aggiornamento videoteca all'avvio 1 volta al giorno.

This commit is contained in:
Alhaziel01
2021-11-08 12:17:52 +01:00
parent 49764eae1f
commit a151ffbdff

View File

@@ -122,7 +122,7 @@ def check_for_update(overwrite=True):
estado_verify_playcount_series = False estado_verify_playcount_series = False
try: try:
if config.get_setting("update", "videolibrary") != 0 or overwrite: if overwrite or (config.get_setting("update", "videolibrary") != 0 and hoy.strftime('%Y-%m-%d') != config.get_setting('updatelibrary_last_check', 'videolibrary')):
config.set_setting("updatelibrary_last_check", hoy.strftime('%Y-%m-%d'), "videolibrary") config.set_setting("updatelibrary_last_check", hoy.strftime('%Y-%m-%d'), "videolibrary")
heading = config.get_localized_string(60601) heading = config.get_localized_string(60601)