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

@ -16,6 +16,8 @@ HTML_CACHE = Cache("shark-html.json", exp=19_800)
BASE_URL = "https://sharkstreams.net"
TAG = "SHARK"
async def process_event(
client: httpx.AsyncClient,
@ -84,7 +86,7 @@ async def refresh_html_cache(
link = match[1].replace("player.php", "get-stream.php")
key = f"[{sport}] {event_name} (SHARK)"
key = f"[{sport}] {event_name} ({TAG})"
events[key] = {
"sport": sport,
@ -162,7 +164,7 @@ async def scrape(client: httpx.AsyncClient) -> None:
tvg_id, logo = leagues.get_tvg_info(sport, event)
key = f"[{sport}] {event} (SHARK)"
key = f"[{sport}] {event} ({TAG})"
entry = {
"url": url,