mirror of
https://github.com/doms9/iptv.git
synced 2026-03-07 11:18:25 +01:00
e
misc edits
This commit is contained in:
parent
fdcd1d7070
commit
00000d964b
12 changed files with 44 additions and 40 deletions
|
|
@ -44,7 +44,7 @@ async def refresh_html_cache(now_ts: float) -> dict[str, dict[str, str | float]]
|
|||
if not (html_data := await network.request(BASE_URL, log=log)):
|
||||
return events
|
||||
|
||||
pattern = re.compile(r"openEmbed\('([^']+)'\)", re.IGNORECASE)
|
||||
pattern = re.compile(r"openEmbed\('([^']+)'\)", re.I)
|
||||
|
||||
soup = HTMLParser(html_data.content)
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
if not start_ts <= v["event_ts"] <= end_ts:
|
||||
continue
|
||||
|
||||
live.append({**v})
|
||||
live.append(v)
|
||||
|
||||
return live
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue