- change domains for totalsportek*.py
- misc edits
This commit is contained in:
doms9 2026-03-26 16:20:40 -04:00
parent 3f0a368f05
commit 00000d9063
4 changed files with 7 additions and 3 deletions

View file

@ -149,7 +149,8 @@ async def refresh_xml_cache(now_ts: float) -> dict[str, dict[str, str | float]]:
event_dt = Time.from_str(date)
key = f"[{sport} - {league}] {title} ({TAG})"
if (key := f"[{sport} - {league}] {title} ({TAG})") in events:
continue
events[key] = {
"sport": sport,

View file

@ -84,6 +84,9 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
t1, t2 = stream_group.get("away"), stream_group.get("home")
if not (t1 and t2):
continue
event = get_event(t1, t2)
if not (date and sport):

View file

@ -14,7 +14,7 @@ TAG = "TOTALSPRTK1"
CACHE_FILE = Cache(TAG, exp=28_800)
BASE_URL = "https://live.totalsportekarmy.com"
BASE_URL = "https://live.totalsportek.foo"
def fix_txt(s: str) -> str:

View file

@ -15,7 +15,7 @@ TAG = "TOTALSPRTK3"
CACHE_FILE = Cache(TAG, exp=28_800)
BASE_URL = "https://live3.totalsportekarmy.com"
BASE_URL = "https://live3.totalsportek.foo"
def fix_txt(s: str) -> str: