mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
edit totalsportek caching add base for cdnlivetv
This commit is contained in:
parent
94636e34ca
commit
00000d922d
2 changed files with 7 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ async def scrape() -> None:
|
|||
entry = {
|
||||
"url": url,
|
||||
"logo": logo,
|
||||
"base": "",
|
||||
"base": link,
|
||||
"timestamp": ts,
|
||||
"id": tvg_id or "Live.Event.us",
|
||||
"link": link,
|
||||
|
|
|
|||
|
|
@ -79,6 +79,12 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
sport = span.text(strip=True)
|
||||
|
||||
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")):
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue