This commit is contained in:
doms9 2025-12-01 14:46:31 -05:00
parent 8094466d7d
commit 00000d99d8
15 changed files with 402 additions and 30 deletions

View file

@ -13,6 +13,8 @@ CACHE_FILE = Cache("pixel.json", exp=19_800)
BASE_URL = "https://pixelsport.tv/backend/livetv/events"
TAG = "PIXL"
async def get_api_data(url: str) -> dict[str, list[dict, str, str]]:
async with async_playwright() as p:
@ -69,7 +71,7 @@ async def get_events() -> dict[str, dict[str, str | float]]:
for z, stream_url in stream_urls:
if stream_link := channel_info.get(stream_url):
if pattern.search(stream_link):
key = f"[{sport}] {event_name} {z} (PIXL)"
key = f"[{sport}] {event_name} {z} ({TAG})"
tvg_id, logo = leagues.get_tvg_info(sport, event_name)