update updater config
All checks were successful
Update channel domains / update (push) Successful in 17s
All checks were successful
Update channel domains / update (push) Successful in 17s
This commit is contained in:
@@ -22,8 +22,8 @@ addonname = addon.getAddonInfo('name')
|
||||
|
||||
_hdr_pat = re.compile("^@@ -(\d+),?(\d+)? \+(\d+),?(\d+)? @@.*")
|
||||
|
||||
branch = 'stable'
|
||||
user = 'kodiondemand'
|
||||
branch = 'master'
|
||||
user = 'stevazi'
|
||||
repo = 'addon'
|
||||
addonDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
maxPage = 5 # le api restituiscono 30 commit per volta, quindi se si è rimasti troppo indietro c'è bisogno di andare avanti con le pagine
|
||||
@@ -31,7 +31,7 @@ trackingFile = "last_commit.txt"
|
||||
|
||||
|
||||
def loadCommits(page=1):
|
||||
apiLink = 'https://api.github.com/repos/' + user + '/' + repo + '/commits?sha=' + branch + "&page=" + str(page)
|
||||
apiLink = 'https://git.stevazi.mywire.org/api/v1/repos/' + user + '/' + repo + '/commits?sha=' + branch + "&page=" + str(page)
|
||||
logger.info(apiLink)
|
||||
# riprova ogni secondo finchè non riesce (ad esempio per mancanza di connessione)
|
||||
for n in range(10):
|
||||
@@ -225,7 +225,7 @@ def updateFromZip(message=config.get_localized_string(80050)):
|
||||
dp = platformtools.dialog_progress_bg(config.get_localized_string(20000), message)
|
||||
dp.update(0)
|
||||
|
||||
remotefilename = 'https://github.com/' + user + "/" + repo + "/archive/" + branch + ".zip"
|
||||
remotefilename = 'https://git.stevazi.mywire.org/api/v1/repos/' + user + "/" + repo + "/archive/" + branch + ".zip"
|
||||
localfilename = filetools.join(xbmc.translatePath("special://home/addons/"), "plugin.video.kod.update.zip")
|
||||
destpathname = xbmc.translatePath("special://home/addons/")
|
||||
extractedDir = filetools.join(destpathname, "addon-" + branch)
|
||||
|
||||
Reference in New Issue
Block a user