mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-09 21:46: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):
|
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):
|
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_response_chunk_received.append(tracer.on_response_chunk_received)
|
||||||
trace_config.on_request_end.append(tracer.on_request_end)
|
trace_config.on_request_end.append(tracer.on_request_end)
|
||||||
trace_config.on_request_exception.append(tracer.on_request_exception)
|
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:
|
else:
|
||||||
web_session = aiohttp.ClientSession(trust_env=config.use_proxy, connector=tcp_connector)
|
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):
|
def changed_skip(self, event: Checkbox.Changed):
|
||||||
self.config.auto_play = event.checkbox.value
|
self.config.auto_play = event.checkbox.value
|
||||||
|
|
||||||
|
|
||||||
class UseProxyManager(Vertical):
|
class UseProxyManager(Vertical):
|
||||||
"""Manager for proxy use, allows enabling/disabling use of proxy."""
|
"""Manager for proxy use, allows enabling/disabling use of proxy."""
|
||||||
|
|
||||||
@@ -915,6 +916,7 @@ class UseProxyManager(Vertical):
|
|||||||
def changed_skip(self, event: Checkbox.Changed):
|
def changed_skip(self, event: Checkbox.Changed):
|
||||||
self.config.use_proxy = event.checkbox.value
|
self.config.use_proxy = event.checkbox.value
|
||||||
|
|
||||||
|
|
||||||
class ISponsorBlockTVSetupMainScreen(Screen):
|
class ISponsorBlockTVSetupMainScreen(Screen):
|
||||||
TITLE = "iSponsorBlockTV"
|
TITLE = "iSponsorBlockTV"
|
||||||
SUB_TITLE = "Setup Wizard"
|
SUB_TITLE = "Setup Wizard"
|
||||||
|
|||||||
Reference in New Issue
Block a user