mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
use different totalsportek.py mirror
This commit is contained in:
parent
53255f7234
commit
00000d98bb
2 changed files with 4 additions and 4 deletions
|
|
@ -77,7 +77,7 @@ async def main() -> None:
|
||||||
|
|
||||||
await asyncio.gather(*tasks)
|
await asyncio.gather(*tasks)
|
||||||
|
|
||||||
#await watchfooty.scrape()
|
await watchfooty.scrape()
|
||||||
|
|
||||||
additions = (
|
additions = (
|
||||||
cdnlivetv.urls
|
cdnlivetv.urls
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ TAG = "TOTALSPRTK"
|
||||||
|
|
||||||
CACHE_FILE = Cache(f"{TAG.lower()}.json", exp=28_800)
|
CACHE_FILE = Cache(f"{TAG.lower()}.json", exp=28_800)
|
||||||
|
|
||||||
BASE_URL = "https://live2.totalsportek777.com/"
|
BASE_URL = "https://live.totalsportek777.com/"
|
||||||
|
|
||||||
|
|
||||||
def fix_league(s: str) -> str:
|
def fix_league(s: str) -> str:
|
||||||
|
|
@ -29,7 +29,7 @@ async def process_event(url: str, url_num: int) -> tuple[str | None, str | None]
|
||||||
|
|
||||||
soup = HTMLParser(html_data.content)
|
soup = HTMLParser(html_data.content)
|
||||||
|
|
||||||
if not (iframe := soup.css_first(".box iframe")):
|
if not (iframe := soup.css_first("iframe")):
|
||||||
log.warning(f"URL {url_num}) No iframe element found.")
|
log.warning(f"URL {url_num}) No iframe element found.")
|
||||||
|
|
||||||
return None, None
|
return None, None
|
||||||
|
|
@ -53,7 +53,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], iframe_src
|
return bytes.fromhex(match[2]).decode("utf-8"), iframe_src
|
||||||
|
|
||||||
|
|
||||||
async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue