This commit is contained in:
ikun
2024-09-19 20:41:47 +08:00
parent 4bd1362317
commit 8ee7765bb0
13 changed files with 80 additions and 105 deletions

20
main.py
View File

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