Fix aggiornamento Videoteca
This commit is contained in:
+2
-2
@@ -83,7 +83,7 @@ class AddonMonitor(xbmc.Monitor):
|
|||||||
if wait > 0:
|
if wait > 0:
|
||||||
xbmc.sleep(wait)
|
xbmc.sleep(wait)
|
||||||
if not config.get_setting("update", "videolibrary") == 2:
|
if not config.get_setting("update", "videolibrary") == 2:
|
||||||
run_threaded(check_for_update, (False,))
|
check_for_update()
|
||||||
self.scheduleVideolibrary()
|
self.scheduleVideolibrary()
|
||||||
super(AddonMonitor, self).__init__()
|
super(AddonMonitor, self).__init__()
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ class AddonMonitor(xbmc.Monitor):
|
|||||||
# 2= daily 3=daily and when kodi starts
|
# 2= daily 3=daily and when kodi starts
|
||||||
if self.update_setting == 2 or self.update_setting == 3:
|
if self.update_setting == 2 or self.update_setting == 3:
|
||||||
self.update_hour = config.get_setting("everyday_delay", "videolibrary") * 4
|
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')
|
logger.debug('scheduled videolibrary at ' + str(self.update_hour).zfill(2) + ':00')
|
||||||
|
|
||||||
def scheduleScreenOnJobs(self):
|
def scheduleScreenOnJobs(self):
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ def update_videolibrary(item=None):
|
|||||||
shows = dict(videolibrarydb['tvshow']).values()
|
shows = dict(videolibrarydb['tvshow']).values()
|
||||||
|
|
||||||
for show in shows:
|
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():
|
for s in show['channels'].values():
|
||||||
show_list += s
|
show_list += s
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user