This commit is contained in:
doms9 2025-12-02 15:26:13 -05:00
parent 00000d91bb
commit 00000d9a4d
6 changed files with 13 additions and 24 deletions

View file

@ -49,10 +49,7 @@ async def get_events() -> dict[str, dict[str, str | float]]:
events = {}
pattern = re.compile(
r"https?://[^\s'\"]+?\.m3u8(?:\?[^\s'\"]*)?",
re.IGNORECASE,
)
pattern = re.compile(r"https?://[^\s'\"]+?\.m3u8(?:\?[^\s'\"]*)?", re.IGNORECASE)
for event in api_data.get("events", []):
event_dt = Time.from_str(event["date"], timezone="UTC")