Test Aggiornamento Videoteca Ad ogni avvio di Kodi e giornaliero
This commit is contained in:
@@ -2552,6 +2552,10 @@ msgctxt "#60607"
|
||||
msgid "Each time you start Kodi"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#60608"
|
||||
msgid "Each time you start Kodi and daily"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#60609"
|
||||
msgid "10 sec"
|
||||
msgstr ""
|
||||
|
||||
@@ -2551,6 +2551,10 @@ msgctxt "#60607"
|
||||
msgid "Each time you start Kodi"
|
||||
msgstr "Ad ogni avvio di Kodi"
|
||||
|
||||
msgctxt "#60608"
|
||||
msgid "Each time you start Kodi and daily"
|
||||
msgstr "Ad ogni avvio di Kodi e giornaliero"
|
||||
|
||||
msgctxt "#60609"
|
||||
msgid "10 sec"
|
||||
msgstr "10 sec"
|
||||
|
||||
11
service.py
11
service.py
@@ -123,8 +123,8 @@ def check_for_update(overwrite=True):
|
||||
|
||||
try:
|
||||
if overwrite or \
|
||||
config.get_setting("update", "videolibrary") == 4 or \
|
||||
(config.get_setting("update", "videolibrary") != 0 and hoy.strftime('%Y-%m-%d') != config.get_setting('updatelibrary_last_check', 'videolibrary')):
|
||||
config.get_setting("update", "videolibrary") in [4, 5] or \
|
||||
(config.get_setting("update", "videolibrary") not in [0, 4] 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")
|
||||
|
||||
@@ -437,8 +437,8 @@ class AddonMonitor(xbmc.Monitor):
|
||||
|
||||
def scheduleVideolibrary(self):
|
||||
self.update_setting = config.get_setting("update", "videolibrary")
|
||||
# 2= daily 3=daily and when kodi starts
|
||||
if self.update_setting == 2 or self.update_setting == 3:
|
||||
# 2 = Daily, 3 = When Kodi starts and daily, 5 = Each time you start Kodi and daily
|
||||
if self.update_setting in [2, 3, 5]:
|
||||
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')
|
||||
logger.debug('scheduled videolibrary at ' + str(self.update_hour).zfill(2) + ':00')
|
||||
@@ -501,8 +501,7 @@ if __name__ == "__main__":
|
||||
updater.refreshLang()
|
||||
|
||||
# prepare to replace strSettings
|
||||
path_settings = xbmc.translatePath(
|
||||
"special://profile/addon_data/metadata.tvshows.themoviedb.org/settings.xml")
|
||||
path_settings = xbmc.translatePath("special://profile/addon_data/metadata.tvshows.themoviedb.org/settings.xml")
|
||||
settings_data = filetools.read(path_settings)
|
||||
strSettings = ' '.join(settings_data.split()).replace("> <", "><")
|
||||
strSettings = strSettings.replace("\"", "\'")
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"@60603",
|
||||
"@60604",
|
||||
"@60605",
|
||||
"@60607"
|
||||
"@60607",
|
||||
"@60608"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -22,7 +23,7 @@
|
||||
"type": "list",
|
||||
"label": "@60606",
|
||||
"default": 0,
|
||||
"enabled": "eq(-1,@60603)|eq(-1,@60605)|eq(-1,@60607)",
|
||||
"enabled": "eq(-1,@60603)|eq(-1,@60605)|eq(-1,@60607)|eq(-1,@60608)",
|
||||
"lvalues": [
|
||||
"No",
|
||||
"@60609",
|
||||
@@ -36,7 +37,7 @@
|
||||
"type": "list",
|
||||
"label": "@60613",
|
||||
"default": 1,
|
||||
"enabled": "eq(-2,@60604)|eq(-2,@60605)",
|
||||
"enabled": "eq(-2,@60604)|eq(-2,@60605)|eq(-1,@60607)",
|
||||
"lvalues": [
|
||||
"00:00",
|
||||
"04:00",
|
||||
|
||||
Reference in New Issue
Block a user