mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-06 20:06:44 +03:00
added prompt for use_proxy in config_setup
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user