diff --git a/main.py b/main.py index 54d031b..f74ed4f 100644 --- a/main.py +++ b/main.py @@ -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') \ No newline at end of file + time.sleep(5) \ No newline at end of file