This commit is contained in:
doms9 2025-12-19 14:05:41 -05:00
parent 8ac6ca8360
commit 00000d94e3
2 changed files with 4 additions and 4 deletions

View file

@ -76,6 +76,8 @@ async def process_event(
context: BrowserContext,
) -> str | None:
pattern = re.compile(r"\((\d+)\)")
page = await context.new_page()
captured: list[str] = []
@ -111,9 +113,7 @@ async def process_event(
return
match = re.search(r"\((\d+)\)", text)
if not match or int(match[1]) == 0:
if not (match := pattern.search(text)) or int(match[1]) == 0:
log.warning(f"URL {url_num}) No available stream links.")
return