Skip to content

Commit ca8b831

Browse files
authored
(credits to weebzo) added open download link if version doesnt match
added open download link if version doesnt match
2 parents 1f7938b + e205cd1 commit ca8b831

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

keyauth.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ def init(self):
6060

6161
response = encryption.decrypt(response, self.secret, init_iv)
6262
json = jsond.loads(response)
63+
64+
if json["message"] == "invalidver":
65+
if json["download"] != "":
66+
print("New Version Available")
67+
download_link = json["download"]
68+
os.system(f"start {download_link}")
69+
sys.exit()
70+
else:
71+
print("Invalid Version, Contact owner to add download link to latest app version")
72+
sys.exit()
6373

6474
if not json["success"]:
6575
print(json["message"])

0 commit comments

Comments
 (0)