This commit is contained in:
doms9 2026-02-27 19:35:14 -05:00
parent 398761d7ce
commit 00000d958f
2 changed files with 20 additions and 59 deletions

View file

@ -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: