fix livetvsx.py scraping
edit health check script
This commit is contained in:
doms9 2026-01-27 20:14:27 -05:00
parent 53686dcc16
commit 00000d968d
3 changed files with 15 additions and 10 deletions

View file

@ -129,12 +129,14 @@ class Network:
async def event_context(
browser: Browser,
stealth: bool = True,
ignore_https: bool = False,
) -> AsyncGenerator[BrowserContext, None]:
context: BrowserContext | None = None
try:
context = await browser.new_context(
user_agent=Network.UA if stealth else None,
ignore_https_errors=ignore_https,
viewport={"width": 1366, "height": 768},
device_scale_factor=1,
locale="en-US",