4 Commits

Author SHA1 Message Date
22b61234a9 update updater config
All checks were successful
Update channel domains / update (push) Successful in 17s
2025-01-17 22:17:29 +01:00
f129d57f30 workflow
All checks were successful
Update channel domains / update (push) Successful in 17s
2025-01-17 21:50:02 +01:00
607f3c8128 workflow edit
Some checks failed
Update channel domains / update (push) Failing after 53s
2025-01-17 21:46:53 +01:00
75e0f8bfa0 Merge pull request 'test-latest' (#1) from test-latest into master
Reviewed-on: #1
2025-01-17 20:44:30 +00:00
2 changed files with 10 additions and 6 deletions

View File

@@ -3,6 +3,9 @@ on:
workflow_dispatch:
schedule:
- cron: '30 17 * * *'
push:
branches:
- master
jobs:
update:
@@ -12,9 +15,10 @@ jobs:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: '3.7'
architecture: 'x64'
- name: Install dependencies
run: pip install requests

View File

@@ -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)