mirror of
https://github.com/doms9/iptv.git
synced 2026-06-13 12:26:26 +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)}:
|
elif cached_links & {link := urljoin(BASE_URL, href)}:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if scr_elem := event.css_first("script"):
|
if (scr_elem := event.css_first("script")) and (
|
||||||
if match := date_ptrn.search(scr_elem.text(strip=True)):
|
match := date_ptrn.search(scr_elem.text(strip=True))
|
||||||
event_dt = Time.fromisoformat(match[0]).to_tz("EST")
|
):
|
||||||
|
event_dt = Time.fromisoformat(match[0]).to_tz("EST")
|
||||||
else:
|
|
||||||
continue
|
|
||||||
|
|
||||||
elif event.css_first('span[id*="gameStatus-"]'):
|
elif event.css_first('span[id*="gameStatus-"]'):
|
||||||
event_dt = now
|
event_dt = now
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue