mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
fix scraper crashing if api url(s) do not work misc. edits
This commit is contained in:
parent
51598ce2a2
commit
00000d903e
9 changed files with 18 additions and 24 deletions
|
|
@ -82,13 +82,10 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
if not (time_node := node.css_first(".col-3")):
|
||||
continue
|
||||
|
||||
if not time_node.text(strip=True) == "MatchStarted":
|
||||
if time_node.text(strip=True) != "MatchStarted":
|
||||
continue
|
||||
|
||||
if not (href := node.attributes.get("href")):
|
||||
continue
|
||||
|
||||
if href.startswith("http"):
|
||||
if not (href := node.attributes.get("href")) or href.startswith("http"):
|
||||
continue
|
||||
|
||||
sport = fix_league(sport)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue