Updates version check and output messages
Improves the version check functionality by updating the local version to 1.0.1 and specifying the URL for the remote version file. Simplifies the output messages by removing unnecessary characters.
This commit is contained in:
6
main.py
6
main.py
@@ -48,17 +48,17 @@ def check_outdated(local_version, url):
|
||||
remote_version = response.text.strip()
|
||||
|
||||
if local_version != remote_version:
|
||||
print(f"⚠️ Outdated: Local version {local_version}, Remote version {remote_version}")
|
||||
print(f"Outdated: Local version {local_version}, Remote version {remote_version}")
|
||||
return True
|
||||
else:
|
||||
print(f"✅ Up to date. Version: {local_version}")
|
||||
print(f"Up to date. Version: {local_version}")
|
||||
return False
|
||||
|
||||
except requests.RequestException as e:
|
||||
print(f"❌ Failed to fetch version file: {e}")
|
||||
return False
|
||||
|
||||
outdated = check_outdated("1.0.0", )
|
||||
outdated = check_outdated("1.0.1", "https://dock-it.dev/GigabiteStudios/BitManager/raw/branch/main/version.txt")
|
||||
|
||||
|
||||
# qBittorrent polling
|
||||
|
||||
Reference in New Issue
Block a user