mirror of
https://github.com/doms9/iptv.git
synced 2026-03-07 11:18:25 +01:00
e
This commit is contained in:
parent
530fe3e562
commit
00000d9895
14 changed files with 25 additions and 34 deletions
|
|
@ -47,8 +47,6 @@ async def process_event(
|
|||
page: Page,
|
||||
) -> str | None:
|
||||
|
||||
event_id_pattern = re.compile(r"&c=(\d*)", re.I)
|
||||
|
||||
captured: list[str] = []
|
||||
|
||||
got_one = asyncio.Event()
|
||||
|
|
@ -82,14 +80,7 @@ async def process_event(
|
|||
log.warning(f"URL {url_num}) No valid sources found.")
|
||||
return
|
||||
|
||||
if (match := event_id_pattern.search(href)) and (
|
||||
event_id := match[1]
|
||||
).isalnum():
|
||||
|
||||
event_url = f"https://aliez.tv/player/live.php?id={event_id}"
|
||||
|
||||
else:
|
||||
event_url = href if href.startswith("http") else f"https:{href}"
|
||||
event_url = href if href.startswith("http") else f"https:{href}"
|
||||
|
||||
await page.goto(
|
||||
event_url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue