mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-06 11:56:45 +03:00
Merge branch 'trust-system-proxy-by-default' of https://github.com/desofity/iSponsorBlockTV into trust-system-proxy-by-default
This commit is contained in:
@@ -47,7 +47,7 @@ def get_yn_input(prompt):
|
||||
|
||||
|
||||
async def create_web_session(use_proxy):
|
||||
return aiohttp.ClientSession(trust_env = use_proxy)
|
||||
return aiohttp.ClientSession(trust_env=use_proxy)
|
||||
|
||||
|
||||
async def pair_device(web_session: aiohttp.ClientSession):
|
||||
|
||||
@@ -172,7 +172,9 @@ async def main_async(config, debug, http_tracing):
|
||||
trace_config.on_response_chunk_received.append(tracer.on_response_chunk_received)
|
||||
trace_config.on_request_end.append(tracer.on_request_end)
|
||||
trace_config.on_request_exception.append(tracer.on_request_exception)
|
||||
web_session = aiohttp.ClientSession(trust_env=config.use_proxy, connector=tcp_connector, trace_configs=[trace_config])
|
||||
web_session = aiohttp.ClientSession(
|
||||
trust_env=config.use_proxy, connector=tcp_connector, trace_configs=[trace_config]
|
||||
)
|
||||
else:
|
||||
web_session = aiohttp.ClientSession(trust_env=config.use_proxy, connector=tcp_connector)
|
||||
|
||||
|
||||
@@ -889,6 +889,7 @@ class AutoPlayManager(Vertical):
|
||||
def changed_skip(self, event: Checkbox.Changed):
|
||||
self.config.auto_play = event.checkbox.value
|
||||
|
||||
|
||||
class UseProxyManager(Vertical):
|
||||
"""Manager for proxy use, allows enabling/disabling use of proxy."""
|
||||
|
||||
@@ -915,6 +916,7 @@ class UseProxyManager(Vertical):
|
||||
def changed_skip(self, event: Checkbox.Changed):
|
||||
self.config.use_proxy = event.checkbox.value
|
||||
|
||||
|
||||
class ISponsorBlockTVSetupMainScreen(Screen):
|
||||
TITLE = "iSponsorBlockTV"
|
||||
SUB_TITLE = "Setup Wizard"
|
||||
|
||||
Reference in New Issue
Block a user