From 53f02b6776eeaf706e70914c474a4d4a63911d30 Mon Sep 17 00:00:00 2001 From: MustardChef <68516357+MustardChef@users.noreply.github.com> Date: Sun, 14 Jul 2024 13:59:15 +0100 Subject: [PATCH] Update generateMagiskLink.py --- MagiskOnWSA/scripts/generateMagiskLink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagiskOnWSA/scripts/generateMagiskLink.py b/MagiskOnWSA/scripts/generateMagiskLink.py index 046788a..1d59a47 100644 --- a/MagiskOnWSA/scripts/generateMagiskLink.py +++ b/MagiskOnWSA/scripts/generateMagiskLink.py @@ -67,12 +67,12 @@ if magisk_branch == "vvb2060": else: try: magisk_link = json.loads(requests.get( - f"https://github.com/{magisk_branch}/magisk-files/raw/master/{magisk_ver}.json").content)['magisk']['link'] + f"https://raw.githubusercontent.com/{magisk_branch}/magisk-files/master/{magisk_ver}.json").content)['magisk']['link'] download_files[f"magisk-{magisk_ver}.zip"] = magisk_link except Exception: print("Failed to fetch from GitHub API, fallbacking to jsdelivr...") magisk_link = json.loads(requests.get( - f"https://fastly.jsdelivr.net/gh/topjohnwu/magisk-files@master/{magisk_ver}.json").content)['magisk']['link'] + f"https://fastly.jsdelivr.net/gh/{magisk_branch}/magisk-files@master/{magisk_ver}.json").content)['magisk']['link'] download_files[f"magisk-{magisk_ver}.zip"] = magisk_link res = requests.get( f"https://api.github.com/repos/LSPosed/WSA-Addon/releases/latest", auth=github_auth)