优化代码

This commit is contained in:
WangXianming
2024-09-16 15:06:13 +08:00
committed by GitHub
parent 2073fbdd9a
commit 6f4dac876f

20
main.py
View File

@@ -8,23 +8,25 @@ from common.init_text import init
from common.main_func import main
lock = asyncio.Lock()
init()
repos = [
'ikun0014/ManifestHub',
'Auiowu/ManifestAutoUpdate',
'tymolu233/ManifestAutoUpdate'
]
'ikun0014/ManifestHub',
'Auiowu/ManifestAutoUpdate',
'tymolu233/ManifestAutoUpdate'
]
def get_app_id():
log.info('App ID可以在SteamDB或Steam商店链接页面查看')
return input("请输入游戏AppID").strip()
if __name__ == '__main__':
try:
while True:
log.info('App ID可以在SteamDB或Steam商店链接页面查看')
app_id = input("请输入游戏AppID").strip()
app_id = get_app_id()
asyncio.run(main(app_id, repos))
except KeyboardInterrupt:
exit()
except Exception as e:
log.error(f' ⚠ 发生错误: {stack_error(e)}将在5秒后退出')
time.sleep(5)
os.system('pause')
time.sleep(5)