diff --git a/src/iSponsorBlockTV/config_setup.py b/src/iSponsorBlockTV/config_setup.py index c92e1a6..89ab213 100644 --- a/src/iSponsorBlockTV/config_setup.py +++ b/src/iSponsorBlockTV/config_setup.py @@ -5,6 +5,7 @@ import aiohttp from . import api_helpers, ytlounge # Constants for user input prompts +USE_PROXY_PROMPT = "Do you want to use system-wide proxy?" ATVS_REMOVAL_PROMPT = ( "Do you want to remove the legacy 'atvs' entry (the app won't start with it present)? (y/N) " ) @@ -75,6 +76,10 @@ async def pair_device(web_session: aiohttp.ClientSession): def main(config, debug: bool) -> None: print("Welcome to the iSponsorBlockTV cli setup wizard") + + choice = get_yn_input(USE_PROXY_PROMPT) + config.use_proxy = choice == "y" + loop = asyncio.get_event_loop_policy().get_event_loop() web_session = loop.run_until_complete(create_web_session(config.use_proxy)) if debug: