This commit is contained in:
doms9 2025-09-13 04:42:55 -04:00
parent c2aa25a654
commit 00000d934a
12 changed files with 231 additions and 68 deletions

View file

@ -51,15 +51,20 @@ async def main(client: httpx.AsyncClient) -> None:
tvg_name = "(".join(tvg_name.split("(")[:-1]).strip()
if url.endswith("/hd"):
urls[f"[{sport}] {tvg_name}"] = {
key = f"[{sport}] {tvg_name} (TVP)"
entry = {
"url": f"http://origin.thetvapp.to/hls/{url.split('/')[-2]}/mono.m3u8",
"logo": LOGOS.get(
sport,
"https://i.gyazo.com/ec27417a9644ae517196494afa72d2b9.png",
),
"base": "https://tvpass.org",
"timestamp": now.timestamp(),
}
urls[key] = entry
CACHE_FILE.write_text(json.dumps(urls, indent=2), encoding="utf-8")
log.info(f"Cached {len(urls)} event(s)")