updater
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="plugin.video.kod" name="Kodi on Demand" version="0.3.1" provider-name="KOD Team">
|
||||
<addon id="plugin.video.kod" name="Kodi on Demand BETA" version="0.3.1" provider-name="KOD Team">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.1.0"/>
|
||||
<import addon="script.module.libtorrent" optional="true"/>
|
||||
|
||||
@@ -15,10 +15,8 @@ addon = xbmcaddon.Addon('plugin.video.kod')
|
||||
|
||||
_hdr_pat = re.compile("^@@ -(\d+),?(\d+)? \+(\d+),?(\d+)? @@.*")
|
||||
|
||||
# branch = 'stable'
|
||||
branch = 'updater'
|
||||
# user = 'kodiondemand'
|
||||
user = 'mac12m99'
|
||||
branch = 'master'
|
||||
user = 'kodiondemand'
|
||||
repo = 'addon'
|
||||
addonDir = xbmc.translatePath("special://home/addons/") + "plugin.video.kod/"
|
||||
maxPage = 5 # le api restituiscono 30 commit per volta, quindi se si è rimasti troppo indietro c'è bisogno di andare avanti con le pagine
|
||||
@@ -33,8 +31,8 @@ def loadCommits(page=1):
|
||||
|
||||
|
||||
def check_addon_init():
|
||||
# if not addon.getSetting('addon_update_enabled'):
|
||||
# return False
|
||||
if not addon.getSetting('addon_update_enabled'):
|
||||
return False
|
||||
logger.info('Cerco aggiornamenti..')
|
||||
commits = loadCommits()
|
||||
|
||||
@@ -118,8 +116,9 @@ def check_addon_init():
|
||||
if not alreadyApplied: # non mando notifica se già applicata (es. scaricato zip da github)
|
||||
changelog += commitJson['commit']['message'] + " | "
|
||||
nCommitApplied += 1
|
||||
time = nCommitApplied * 2000 if nCommitApplied < 10 else 20000
|
||||
platformtools.dialog_notification('Kodi on Demand', changelog, time)
|
||||
if addon.getSetting("addon_update_message"):
|
||||
time = nCommitApplied * 2000 if nCommitApplied < 10 else 20000
|
||||
platformtools.dialog_notification('Kodi on Demand', changelog, time)
|
||||
|
||||
localCommitFile.seek(0)
|
||||
localCommitFile.truncate()
|
||||
|
||||
@@ -5019,7 +5019,7 @@ msgid "Timeout (maximum waiting time)"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70581"
|
||||
msgid "Interval between automatic updates (hours)"
|
||||
msgid "Check for updates when kodi starts"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70582"
|
||||
|
||||
@@ -5018,8 +5018,8 @@ msgid "Timeout (maximum waiting time)"
|
||||
msgstr "Timeout (tempo massimo da aspettare)"
|
||||
|
||||
msgctxt "#70581"
|
||||
msgid "Interval between automatic updates (hours)"
|
||||
msgstr "Intervallo tra gli aggiornamenti automatici (ore)"
|
||||
msgid "Check for updates when kodi starts"
|
||||
msgstr "Controlla gli aggiornamenti all'apertura di kodi"
|
||||
|
||||
msgctxt "#70582"
|
||||
msgid "Do you want to see messages about the updates?"
|
||||
|
||||
@@ -138,8 +138,8 @@
|
||||
|
||||
<setting type="sep"/>
|
||||
<setting label="70579" type="lsep"/>
|
||||
<setting id="addon_update_timer" type="labelenum" values="0|6|12|24" label="70581" default="12"/>
|
||||
<setting id="addon_update_message" type="bool" label="70582" default="false"/>
|
||||
<setting id="addon_update_enabled" type="bool" label="70581" default="true"/>
|
||||
<setting id="addon_update_message" type="bool" label="70582" default="true"/>
|
||||
|
||||
<setting label="Lista activa" type="text" id="lista_activa" default="alfavorites-default.json" visible="false"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user