edit totalsportek caching
add base for cdnlivetv
This commit is contained in:
doms9 2025-12-27 13:17:19 -05:00
parent 94636e34ca
commit 00000d922d
2 changed files with 7 additions and 1 deletions

View file

@ -138,7 +138,7 @@ async def scrape() -> None:
entry = { entry = {
"url": url, "url": url,
"logo": logo, "logo": logo,
"base": "", "base": link,
"timestamp": ts, "timestamp": ts,
"id": tvg_id or "Live.Event.us", "id": tvg_id or "Live.Event.us",
"link": link, "link": link,

View file

@ -79,6 +79,12 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
sport = span.text(strip=True) sport = span.text(strip=True)
if node.tag == "a" and "nav-link2" in node_class: if node.tag == "a" and "nav-link2" in node_class:
if not (time_node := node.css_first(".col-3")):
continue
if not time_node.text(strip=True) == "MatchStarted":
continue
if not (href := node.attributes.get("href")): if not (href := node.attributes.get("href")):
continue continue