mirror of
https://github.com/doms9/iptv.git
synced 2026-06-06 02:43:05 +02:00
update M3U8
This commit is contained in:
parent
52c043f99a
commit
89364c0c56
5 changed files with 331 additions and 415 deletions
|
|
@ -42,7 +42,7 @@ async def process_event(url: str, url_num: int) -> tuple[str | None, str | None]
|
|||
log.warning(f"URL {url_num}) Failed to load iframe source.")
|
||||
return nones
|
||||
|
||||
valid_m3u8 = re.compile(r'(var|const)\s+(\w+)\s*=\s*"([^"]*)"', re.I)
|
||||
valid_m3u8 = re.compile(r'(var|const)\s+(\w+)\s+=\s+"([^"]*)"', re.I)
|
||||
|
||||
if not (match := valid_m3u8.search(iframe_src_data.text)):
|
||||
log.warning(f"URL {url_num}) No Clappr source found.")
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ urls: dict[str, dict[str, str | float]] = {}
|
|||
|
||||
TAG = "ROXIE"
|
||||
|
||||
CACHE_FILE = Cache(TAG, exp=28_800)
|
||||
CACHE_FILE = Cache(TAG, exp=19_800)
|
||||
|
||||
BASE_URL = "https://roxiestreams.su"
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ urls: dict[str, dict[str, str | float]] = {}
|
|||
|
||||
TAG = "STRMCNTR"
|
||||
|
||||
CACHE_FILE = Cache(TAG, exp=86_400)
|
||||
CACHE_FILE = Cache(TAG, exp=28_800)
|
||||
|
||||
API_URL = "https://backend.streamcenter.live/api/Parties"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue