mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-09-10 15:36:20 +00:00
Update generateMagiskLink.py
This commit is contained in:
parent
3bb7db1bce
commit
86b18ab65a
1 changed files with 2 additions and 2 deletions
|
@ -33,11 +33,11 @@ if not magisk_ver:
|
|||
if magisk_ver == "stable" or magisk_ver == "beta" or magisk_ver == "canary" or magisk_ver == "debug":
|
||||
try:
|
||||
magisk_link = json.loads(requests.get(
|
||||
f"https://raw.githubusercontent.com/HuskyDG/magisk-files/main/canary.json").content)['magisk']['link']
|
||||
f"https://raw.githubusercontent.com/HuskyDG/magisk-files/main/monet/canary.json").content)['magisk']['link']
|
||||
except Exception:
|
||||
print("Failed to fetch from GitHub API, fallbacking to jsdelivr...")
|
||||
magisk_link = json.loads(requests.get(
|
||||
f"https://raw.githubusercontent.com/HuskyDG/magisk-files/main/canary.json").content)['magisk']['link']
|
||||
f"https://raw.githubusercontent.com/HuskyDG/magisk-files/main/monet/canary.json").content)['magisk']['link']
|
||||
print(f"download link: {magisk_link}", flush=True)
|
||||
|
||||
with open(download_dir/tempScript, 'a') as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue