From 00000d98ae1e3f01fa9e898caaf804575cefe51b Mon Sep 17 00:00:00 2001 From: doms9 <96013514+doms9@users.noreply.github.com> Date: Sun, 26 Oct 2025 18:29:10 -0400 Subject: [PATCH] e --- M3U8/scrapers/streamed.py | 4 +++- M3U8/scrapers/utils/config.py | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/M3U8/scrapers/streamed.py b/M3U8/scrapers/streamed.py index 0839049..460a159 100644 --- a/M3U8/scrapers/streamed.py +++ b/M3U8/scrapers/streamed.py @@ -89,7 +89,9 @@ async def refresh_html_cache(client: httpx.AsyncClient, url: str) -> dict[str, s if not (date := row.css_first("div.date")): continue - event_dt = Time.from_str(date.text(strip=True)) + event_date = date.text(strip=True).replace("\t", " ") + + event_dt = Time.from_str(event_date) if event_dt.date() != now.date(): continue diff --git a/M3U8/scrapers/utils/config.py b/M3U8/scrapers/utils/config.py index 6c1c789..a645d53 100644 --- a/M3U8/scrapers/utils/config.py +++ b/M3U8/scrapers/utils/config.py @@ -63,7 +63,11 @@ class Time(datetime): formats = [ "%Y-%m-%d %H:%M", "%Y-%m-%d %H:%M:%S", - "%Y-%m-%dT%H:%M:%S.%fZ", + "%Y/%m/%d %H:%M", + "%Y/%m/%d %H:%M:%S", + "%m/%d/%Y %H:%M", + "%m/%d/%Y %H:%M:%S", + "%Y/%m/%dT%H:%M:%S.%fZ", "%a, %d %b %Y %H:%M:%S %z", ]