mirror of
https://github.com/ikunshare/Onekey.git
synced 2026-01-16 01:53:02 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
630f825294 | ||
|
|
6a4222985a | ||
|
|
61ce83ce9c |
@@ -17,7 +17,7 @@
|
||||
先去Release下最新发布,然后去steamtools官网下steamtools,日志会有点石介意别用
|
||||
|
||||
## 项目协议
|
||||
本项目基于 GPL V3.0 许可证发行,以下协议是对于 GPL V3.0 原协议的补充,如有冲突,以以下协议为准。
|
||||
本项目基于 ACSL V2.0 许可证发行,以下协议是对于 ACSL V2.0 原协议的补充,如有冲突,以以下协议为准。
|
||||
|
||||
词语约定:“使用者”指签署本协议的使用者;“版权数据”指包括但不限于图像、音频、名字等在内的他人拥有所属版权的数据。
|
||||
|
||||
|
||||
13
main.py
13
main.py
@@ -68,7 +68,7 @@ print('\033[1;32;40m | |_| | | | \ | | |___ | | \ \ | |___ / /\033[0m')
|
||||
print('\033[1;32;40m \_____/ |_| \_| |_____| |_| \_\ |_____| /_/\033[0m')
|
||||
log.info('作者ikun0014')
|
||||
log.info('本项目基于wxy1343/ManifestAutoUpdate进行修改,采用GPL V3许可证')
|
||||
log.info('版本:1.0.3')
|
||||
log.info('版本:1.0.4')
|
||||
log.info('项目仓库:https://github.com/ikunshare/Onekey')
|
||||
log.debug('官网:ikunshare.com')
|
||||
log.warning('注意:据传Steam新版本对部分解锁工具进行了检测,但目前未发现问题,如果你被封号可以issue反馈')
|
||||
@@ -113,7 +113,7 @@ async def get(sha, path):
|
||||
while retry:
|
||||
for url in url_list:
|
||||
try:
|
||||
async with session.get(url) as r:
|
||||
async with session.get(url, ssl=False) as r:
|
||||
if r.status == 200:
|
||||
return await r.read()
|
||||
else:
|
||||
@@ -231,7 +231,7 @@ async def greenluma_add(depot_id_list):
|
||||
async def check_github_api_limit(headers):
|
||||
url = 'https://api.github.com/rate_limit'
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(url, headers=headers) as r:
|
||||
async with session.get(url, headers=headers, ssl=False) as r:
|
||||
r_json = await r.json()
|
||||
remain_limit = r_json['rate']['remaining']
|
||||
use_limit = r_json['rate']['used']
|
||||
@@ -260,18 +260,17 @@ async def main(app_id):
|
||||
github_token = config.get("Github_Persoal_Token", "")
|
||||
headers = {'Authorization': f'Bearer {github_token}'} if github_token else None
|
||||
|
||||
if headers:
|
||||
await check_github_api_limit(headers)
|
||||
await check_github_api_limit(headers)
|
||||
|
||||
url = f'https://api.github.com/repos/{repo}/branches/{app_id}'
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(url, headers=headers) as r:
|
||||
async with session.get(url, headers=headers, ssl=False) as r:
|
||||
r_json = await r.json()
|
||||
if 'commit' in r_json:
|
||||
sha = r_json['commit']['sha']
|
||||
url = r_json['commit']['commit']['tree']['url']
|
||||
date = r_json['commit']['commit']['author']['date']
|
||||
async with session.get(url, headers=headers) as r2:
|
||||
async with session.get(url, headers=headers, ssl=False) as r2:
|
||||
r2_json = await r2.json()
|
||||
if 'tree' in r2_json:
|
||||
collected_depots = []
|
||||
|
||||
Reference in New Issue
Block a user