e
This commit is contained in:
parent
1f56f80f01
commit
00000d9911
2 changed files with 5 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ log = get_logger(__name__)
|
||||||
|
|
||||||
urls: dict[str, dict[str, str]] = {}
|
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)
|
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")):
|
if not (span := row.css_first("span.countdown-timer")):
|
||||||
continue
|
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)"
|
key = f"[{sport}] {event} (ROXIE)"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,8 @@ class Time(datetime):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
formats = [
|
formats = [
|
||||||
|
"%B %d, %Y %H:%M %p",
|
||||||
|
"%B %d, %Y %H:%M",
|
||||||
"%Y-%m-%d %H:%M",
|
"%Y-%m-%d %H:%M",
|
||||||
"%Y-%m-%d %H:%M:%S",
|
"%Y-%m-%d %H:%M:%S",
|
||||||
"%Y/%m/%d %H:%M",
|
"%Y/%m/%d %H:%M",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue