1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-21 12:35:34 +08:00

Add: Added new update check

- @LmeSzinc made another update check with proxy support, I just add a github token support because github api has a limit of 60 requests per hour for unauthenticated requests.
This commit is contained in:
whoamikyo
2020-06-21 13:17:23 -03:00
parent 0cdbe4cf10
commit c735df79b9
9 changed files with 131 additions and 12 deletions

View File

@@ -23,6 +23,8 @@ class AzurLaneConfig:
start_time = datetime.now()
UPDATE_CHECK = True
UPDATE_PROXY = ''
GITHUB_TOKEN = 'dd49b498d12c4f0908a91ccc8d54396352fc4740'
SERVER = server.server
logger.attr('Server', SERVER)
@@ -417,6 +419,8 @@ class AzurLaneConfig:
self.COMBAT_SCREENSHOT_INTERVAL = float(option['combat_screenshot_interval'])
#UpdateCheck
self.UPDATE_CHECK = to_bool(option['enable_update_check'])
self.UPDATE_PROXY = option['update_proxy']
self.GITHUB_TOKEN = option['github_token']
option = config['Setting']
# Stop condition