mirror of
https://github.com/doms9/iptv.git
synced 2026-06-15 12:46:27 +02:00
e
- add resportz.py - add vivatops.py - remove totalsportek.py - misc. edits
This commit is contained in:
parent
0f7f10a616
commit
00000d9759
7 changed files with 335 additions and 236 deletions
|
|
@ -19,14 +19,12 @@ BASE_URL = "https://sharkstreams.net"
|
|||
async def process_event(url: str, url_num: int) -> str | None:
|
||||
if not (r := await network.request(url, log=log)):
|
||||
log.warning(f"URL {url_num}) Failed to load url.")
|
||||
|
||||
return
|
||||
|
||||
data: dict[str, list[str]] = r.json()
|
||||
|
||||
if not (urls := data.get("urls")):
|
||||
log.warning(f"URL {url_num}) No M3U8 found")
|
||||
|
||||
return
|
||||
|
||||
log.info(f"URL {url_num}) Captured M3U8")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue