diff --git a/M3U8/scrapers/roxie.py b/M3U8/scrapers/roxie.py index fcd1467..de3ddf8 100644 --- a/M3U8/scrapers/roxie.py +++ b/M3U8/scrapers/roxie.py @@ -13,7 +13,7 @@ log = get_logger(__name__) urls: dict[str, dict[str, str]] = {} -MIRRORS = ["https://roxiestreams.cc", "https://roxiestreams.live"] +MIRRORS = ["https://roxiestreams.live", "https://roxiestreams.cc"] CACHE_FILE = Cache(Path(__file__).parent / "caches" / "roxie.json", exp=10_800) @@ -78,9 +78,9 @@ async def refresh_html_cache( if not (span := row.css_first("span.countdown-timer")): continue - data_start = span.attributes["data-start"] + data_start = span.attributes["data-start"].rsplit(":", 1)[0] - event_dt = Time.from_str(f"{data_start} PST", "%B %d, %Y %H:%M:%S") + event_dt = Time.from_str(f"{data_start} PST") key = f"[{sport}] {event} (ROXIE)" diff --git a/M3U8/scrapers/utils/config.py b/M3U8/scrapers/utils/config.py index 05eaf59..a272775 100644 --- a/M3U8/scrapers/utils/config.py +++ b/M3U8/scrapers/utils/config.py @@ -67,6 +67,8 @@ class Time(datetime): else: formats = [ + "%B %d, %Y %H:%M %p", + "%B %d, %Y %H:%M", "%Y-%m-%d %H:%M", "%Y-%m-%d %H:%M:%S", "%Y/%m/%d %H:%M",