Aggiunta opzione per aggiornare la Videoteca ad ogni avvio di Kodi

This commit is contained in:
Alhaziel01
2022-07-29 15:13:07 +02:00
parent aec6f6811e
commit d300adbdb4
4 changed files with 290 additions and 287 deletions
@@ -2549,7 +2549,7 @@ msgid " Update waiting time"
msgstr ""
msgctxt "#60607"
msgid "When Kodi starts"
msgid "Each time you start Kodi"
msgstr ""
msgctxt "#60609"
@@ -2548,8 +2548,8 @@ msgid " Update waiting time"
msgstr " Tempo di attesa aggiornamento"
msgctxt "#60607"
msgid "When Kodi starts"
msgstr "All'avvio di Kodi"
msgid "Each time you start Kodi"
msgstr "Ad ogni avvio di Kodi"
msgctxt "#60609"
msgid "10 sec"
+4 -1
View File
@@ -122,7 +122,10 @@ def check_for_update(overwrite=True):
estado_verify_playcount_series = False
try:
if overwrite or (config.get_setting("update", "videolibrary") != 0 and hoy.strftime('%Y-%m-%d') != config.get_setting('updatelibrary_last_check', 'videolibrary')):
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.set_setting("updatelibrary_last_check", hoy.strftime('%Y-%m-%d'), "videolibrary")
heading = config.get_localized_string(60601)
+4 -4
View File
@@ -3,8 +3,7 @@
"name": "Videoteca",
"active": false,
"language": ["*"],
"settings": [
{
"settings": [{
"id": "update",
"type": "list",
"label": "@60601",
@@ -14,7 +13,8 @@
"@60602",
"@60603",
"@60604",
"@60605"
"@60605",
"@60607"
]
},
{
@@ -22,7 +22,7 @@
"type": "list",
"label": "@60606",
"default": 0,
"enabled": "eq(-1,@60603)|eq(-1,@60605)",
"enabled": "eq(-1,@60603)|eq(-1,@60605)|eq(-1,@60607)",
"lvalues": [
"No",
"@60609",