e
This commit is contained in:
parent
4f6e1caa5f
commit
00000d9c6d
16 changed files with 106 additions and 89 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import asyncio
|
||||
import re
|
||||
from functools import partial
|
||||
from pathlib import Path
|
||||
from urllib.parse import urljoin
|
||||
|
||||
import httpx
|
||||
|
|
@ -11,14 +10,14 @@ 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("roxie.json", exp=10_800)
|
||||
|
||||
HTML_CACHE = Cache("roxie-html.json", exp=28_800)
|
||||
|
||||
MIRRORS = ["https://roxiestreams.live", "https://roxiestreams.cc"]
|
||||
|
||||
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "roxie.json", exp=10_800)
|
||||
|
||||
HTML_CACHE = Cache(Path(__file__).parent / "caches" / "roxie_html.json", exp=28_800)
|
||||
|
||||
|
||||
async def process_event(
|
||||
client: httpx.AsyncClient,
|
||||
|
|
@ -80,7 +79,7 @@ async def refresh_html_cache(
|
|||
|
||||
data_start = span.attributes["data-start"].rsplit(":", 1)[0]
|
||||
|
||||
event_dt = Time.from_str(f"{data_start}", timezone="PST")
|
||||
event_dt = Time.from_str(data_start, timezone="PST")
|
||||
|
||||
key = f"[{sport}] {event} (ROXIE)"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue