Update MTGUpdateCheck.py

This commit is contained in:
MustardChef 2023-12-15 22:39:49 +00:00 committed by GitHub
parent 584eb9eccc
commit b6728ac247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ with open('gapps.appversion', 'w') as file:
if not new_version_found:
latestver = ""
mtgmsg = ""
latestver = json.loads(requests.get(f"https://api.github.com/repos/MustardChef/MindTheGappsForWSABuilds/releases/latest").content)['name'].replace('\n', '')
latestver = json.loads(requests.get(f"https://api.github.com/repos/MustardChef/MindTheGappsArchived/releases/latest").content)['name'].replace('\n', '')
mtgmsg="Update MindTheGapps Version from `v" + currentver + "` to `v" + latestver + "`"
if currentver != latestver:
print("New version found: " + latestver)