This commit is contained in:
doms9 2025-09-19 02:05:40 -04:00
parent 00000d94a2
commit 00000d9a95
12 changed files with 160 additions and 55 deletions

View file

@ -3,7 +3,7 @@ from pathlib import Path
import httpx
from .utils import LOGOS, get_logger, load_cache, now, write_cache
from .utils import get_logger, league_info, load_cache, now, write_cache
log = get_logger(__name__)
@ -54,7 +54,8 @@ async def main(client: httpx.AsyncClient) -> None:
entry = {
"url": f"http://origin.thetvapp.to/hls/{url.split('/')[-2]}/mono.m3u8",
"logo": LOGOS.get(sport, LOGOS["default"]),
"logo": league_info(sport)["logo"],
"tvg-id": league_info(sport)["id"],
"base": "https://tvpass.org",
"timestamp": now.timestamp(),
}