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:
OusmBlueNinja
2025-06-03 22:58:56 -05:00
parent 4f87ec2b60
commit 3e7081abbf

View File

@@ -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