mirror of
https://github.com/doms9/iptv.git
synced 2026-04-21 19:46:59 +02:00
e
- edit domain for cdnlivetv.py - edit scraping for streamsgate.py
This commit is contained in:
parent
a16a34ff4c
commit
00000d9b90
2 changed files with 4 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ CACHE_FILE = Cache(TAG, exp=10_800)
|
||||||
|
|
||||||
API_FILE = Cache(f"{TAG}-api", exp=19_800)
|
API_FILE = Cache(f"{TAG}-api", exp=19_800)
|
||||||
|
|
||||||
API_URL = "https://api.cdn-live.tv"
|
API_URL = "https://api.cdnlivetv.tv"
|
||||||
|
|
||||||
|
|
||||||
async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ async def process_event(url: str, url_num: int) -> tuple[str | None, str | None]
|
||||||
|
|
||||||
log.info(f"URL {url_num}) Captured M3U8")
|
log.info(f"URL {url_num}) Captured M3U8")
|
||||||
|
|
||||||
return match[2]
|
return match[2], ifr_src
|
||||||
|
|
||||||
|
|
||||||
async def refresh_api_cache(now_ts: float) -> list[dict[str, Any]]:
|
async def refresh_api_cache(now_ts: float) -> list[dict[str, Any]]:
|
||||||
|
|
@ -178,7 +178,7 @@ async def scrape() -> None:
|
||||||
url_num=i,
|
url_num=i,
|
||||||
)
|
)
|
||||||
|
|
||||||
url = await network.safe_process(
|
url, iframe = await network.safe_process(
|
||||||
handler,
|
handler,
|
||||||
url_num=i,
|
url_num=i,
|
||||||
semaphore=network.PW_S,
|
semaphore=network.PW_S,
|
||||||
|
|
@ -198,7 +198,7 @@ async def scrape() -> None:
|
||||||
entry = {
|
entry = {
|
||||||
"url": url,
|
"url": url,
|
||||||
"logo": logo,
|
"logo": logo,
|
||||||
"base": "https://streamfree.click",
|
"base": iframe,
|
||||||
"timestamp": ts,
|
"timestamp": ts,
|
||||||
"id": tvg_id or "Live.Event.us",
|
"id": tvg_id or "Live.Event.us",
|
||||||
"link": link,
|
"link": link,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue