mirror of
https://github.com/doms9/iptv.git
synced 2026-03-09 11:37:43 +01:00
e
This commit is contained in:
parent
398761d7ce
commit
00000d958f
2 changed files with 20 additions and 59 deletions
|
|
@ -61,6 +61,8 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
|
||||
feed = feedparser.parse(html_data.content)
|
||||
|
||||
sport = "Live Event"
|
||||
|
||||
for entry in feed.entries:
|
||||
if not (link := entry.get("link")):
|
||||
continue
|
||||
|
|
@ -68,8 +70,6 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
if not (title := entry.get("title")):
|
||||
continue
|
||||
|
||||
sport = "Live Event"
|
||||
|
||||
title = title.replace(" v ", " vs ")
|
||||
|
||||
if f"[{sport}] {title} ({TAG})" in cached_keys:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue