mirror of
https://github.com/doms9/iptv.git
synced 2026-03-07 11:18:25 +01:00
e
edit urls for websites
This commit is contained in:
parent
b6f835b575
commit
00000d9595
5 changed files with 75 additions and 48 deletions
|
|
@ -31,9 +31,11 @@ async def process_event(url: str, url_num: int) -> str | None:
|
|||
|
||||
return
|
||||
|
||||
pattern = re.compile(r"playlist\.m3u8\?.*$", re.I)
|
||||
|
||||
log.info(f"URL {url_num}) Captured M3U8")
|
||||
|
||||
return urls[0]
|
||||
return pattern.sub(r"chunks.m3u8", urls[0])
|
||||
|
||||
|
||||
async def refresh_html_cache(now_ts: float) -> dict[str, dict[str, str | float]]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue