Skip to content

Commit 4daa708

Browse files
authored
Fix Small Bugs
1 parent 67aac37 commit 4daa708

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Code/app.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# *-* coding:utf-8 -*-
2-
APPVERSION = "V2.2"
2+
APPVERSION = "V2.2.1" # Semantic Versioning
33
import webbrowser
44
import requests
55
import uvicorn
@@ -16,9 +16,9 @@ def Check_Update():
1616
release_info = requests.get("https://api.github.com/repos/A-Soul-Database/RangeDownloader/releases/latest",timeout=0.5).json()
1717
latest_tag,release_body = release_info["tag_name"] , release_info["body"]
1818
if latest_tag != APPVERSION:
19-
return (tkinter.messagebox.askokcancel(title="版本更新", message=f"小伙伴你好,分段下载有更新了!\n更新日志: {release_body}\n 点击 “确定” 跳转更新\n点击 “取消” 忽略"),release_info["assets"][0]["browser_download_url"])
19+
return tkinter.messagebox.askokcancel(title="版本更新", message=f"小伙伴你好,分段下载有更新了!\n更新日志: {release_body}\n 点击 “确定” 跳转更新\n点击 “取消” 忽略")
2020
else:
21-
return (False , "")
21+
return False
2222
except Exception as e:
2323
print(f"Check Latest Version Failed {e}")
2424
return (False, "")
@@ -29,9 +29,8 @@ def Check_Update():
2929
t2 = Thread(target=uvicorn.run,kwargs=({"app":Parse_Api.Api,"port":4400}),daemon=True)
3030
t1.start()
3131
t2.start()
32-
Update = Check_Update()
33-
if Update[0]:
34-
webbrowser.open(Update[1].replace("github.com","hub.fastgit.xyz"))
32+
if Check_Update():
33+
webbrowser.open("https://github.com/A-Soul-Database/RangeDownloader/releases/latest")
3534
else:
3635
webbrowser.open("https://rd.asdb.live")
3736
#webbrowser.open("https://asdb.live")

0 commit comments

Comments
 (0)