Fix aggiornamento Videoteca

This commit is contained in:
Alhaziel01
2021-05-29 19:04:59 +02:00
parent f7fd28e9d1
commit ef8f78ea07
2 changed files with 3 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ class AddonMonitor(xbmc.Monitor):
if wait > 0:
xbmc.sleep(wait)
if not config.get_setting("update", "videolibrary") == 2:
run_threaded(check_for_update, (False,))
check_for_update()
self.scheduleVideolibrary()
super(AddonMonitor, self).__init__()
@@ -167,7 +167,7 @@ class AddonMonitor(xbmc.Monitor):
# 2= daily 3=daily and when kodi starts
if self.update_setting == 2 or self.update_setting == 3:
self.update_hour = config.get_setting("everyday_delay", "videolibrary") * 4
schedule.every().day.at(str(self.update_hour).zfill(2) + ':00').do(run_threaded, check_for_update, (False,)).tag('videolibrary')
schedule.every().day.at(str(self.update_hour).zfill(2) + ':00').do(check_for_update).tag('videolibrary')
logger.debug('scheduled videolibrary at ' + str(self.update_hour).zfill(2) + ':00')
def scheduleScreenOnJobs(self):

View File

@@ -496,7 +496,7 @@ def update_videolibrary(item=None):
shows = dict(videolibrarydb['tvshow']).values()
for show in shows:
if show['item'].active or item.forced:
if show['item'].active or (item and item.forced):
for s in show['channels'].values():
show_list += s