This commit is contained in:
doms9 2025-11-13 12:43:55 -05:00
parent 4f6e1caa5f
commit 00000d9c6d
16 changed files with 106 additions and 89 deletions

View file

@ -1,6 +1,5 @@
import re
from functools import partial
from pathlib import Path
from urllib.parse import urljoin
import httpx
@ -10,12 +9,12 @@ from .utils import Cache, Time, get_logger, leagues, network
log = get_logger(__name__)
urls: dict[str, dict[str, str]] = {}
urls: dict[str, dict[str, str | float]] = {}
CACHE_FILE = Cache("streambtw.json", exp=3_600)
BASE_URL = "https://streambtw.com"
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "streambtw.json", exp=3_600)
async def process_event(
client: httpx.AsyncClient,