Replace GitHub API with static HTML parsing to avoid API rate limiting

This commit is contained in:
Hoang Hong Quan
2024-12-10 12:15:06 +07:00
parent 43e5065bfa
commit a469db2520
3 changed files with 51 additions and 76 deletions
-8
View File
@@ -61,14 +61,6 @@ class Updater:
self.utils.head("Check for Updates")
print("")
current_sha_version = self.get_current_sha_version()
if not self.github.check_ratelimit():
print("GitHub REST API request quota has been exhausted. Automatic update check is unavailable now.")
print("Please check for updates manually if needed.")
print("")
self.utils.request_input()
return False
latest_sha_version = self.get_latest_sha_version()
print("Current script SHA version: {}".format(current_sha_version))
print("Latest script SHA version: {}".format(latest_sha_version))