mirror of
https://github.com/doms9/iptv.git
synced 2026-06-14 12:36:27 +02:00
e
This commit is contained in:
parent
00000d99f0
commit
00000d98b8
1 changed files with 4 additions and 6 deletions
|
|
@ -146,12 +146,10 @@ async def get_events(cached_links: set[str]) -> list[dict[str, str]]:
|
|||
elif cached_links & {link := urljoin(BASE_URL, href)}:
|
||||
continue
|
||||
|
||||
if scr_elem := event.css_first("script"):
|
||||
if match := date_ptrn.search(scr_elem.text(strip=True)):
|
||||
event_dt = Time.fromisoformat(match[0]).to_tz("EST")
|
||||
|
||||
else:
|
||||
continue
|
||||
if (scr_elem := event.css_first("script")) and (
|
||||
match := date_ptrn.search(scr_elem.text(strip=True))
|
||||
):
|
||||
event_dt = Time.fromisoformat(match[0]).to_tz("EST")
|
||||
|
||||
elif event.css_first('span[id*="gameStatus-"]'):
|
||||
event_dt = now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue