mirror of
https://github.com/honmashironeko/ProxyCat.git
synced 2025-11-05 10:51:06 +00:00
Update
This commit is contained in:
parent
977db36b66
commit
6381ebf5ae
@ -12,7 +12,7 @@ async def check_for_updates():
|
|||||||
match = re.search(r'<p>(ProxyCat-V\d+\.\d+)</p>', content)
|
match = re.search(r'<p>(ProxyCat-V\d+\.\d+)</p>', content)
|
||||||
if match:
|
if match:
|
||||||
latest_version = match.group(1)
|
latest_version = match.group(1)
|
||||||
CURRENT_VERSION = "ProxyCat-V1.7"
|
CURRENT_VERSION = "ProxyCat-V1.9"
|
||||||
if version.parse(latest_version.split('-V')[1]) > version.parse(CURRENT_VERSION.split('-V')[1]):
|
if version.parse(latest_version.split('-V')[1]) > version.parse(CURRENT_VERSION.split('-V')[1]):
|
||||||
print(f"{Fore.YELLOW}发现新版本!当前版本: {CURRENT_VERSION}, 最新版本: {latest_version}")
|
print(f"{Fore.YELLOW}发现新版本!当前版本: {CURRENT_VERSION}, 最新版本: {latest_version}")
|
||||||
print(f"{Fore.YELLOW}请访问 https://pan.quark.cn/s/39b4b5674570 获取最新版本。")
|
print(f"{Fore.YELLOW}请访问 https://pan.quark.cn/s/39b4b5674570 获取最新版本。")
|
||||||
|
|||||||
@ -12,7 +12,7 @@ async def check_for_updates():
|
|||||||
match = re.search(r'<p>(ProxyCat-V\d+\.\d+)</p>', content)
|
match = re.search(r'<p>(ProxyCat-V\d+\.\d+)</p>', content)
|
||||||
if match:
|
if match:
|
||||||
latest_version = match.group(1)
|
latest_version = match.group(1)
|
||||||
CURRENT_VERSION = "ProxyCat-V1.7"
|
CURRENT_VERSION = "ProxyCat-V1.9"
|
||||||
if version.parse(latest_version.split('-V')[1]) > version.parse(CURRENT_VERSION.split('-V')[1]):
|
if version.parse(latest_version.split('-V')[1]) > version.parse(CURRENT_VERSION.split('-V')[1]):
|
||||||
print(f"{Fore.YELLOW}New version found! Current version: {CURRENT_VERSION}, Latest version: {latest_version}")
|
print(f"{Fore.YELLOW}New version found! Current version: {CURRENT_VERSION}, Latest version: {latest_version}")
|
||||||
print(f"{Fore.YELLOW}Please visit https://pan.quark.cn/s/39b4b5674570 to get the latest version.")
|
print(f"{Fore.YELLOW}Please visit https://pan.quark.cn/s/39b4b5674570 to get the latest version.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user