e
This commit is contained in:
parent
ea1741ceb1
commit
00000d9c41
1 changed files with 4 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ SPORT_URLS = {
|
||||||
|
|
||||||
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "roxie.json", exp=10_800)
|
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "roxie.json", exp=10_800)
|
||||||
|
|
||||||
HTML_CACHE = Cache(Path(__file__).parent / "caches" / "roxie_html.json", exp=86_400)
|
HTML_CACHE = Cache(Path(__file__).parent / "caches" / "roxie_html.json", exp=28_800)
|
||||||
|
|
||||||
|
|
||||||
async def process_event(
|
async def process_event(
|
||||||
|
|
@ -51,7 +51,7 @@ async def process_event(
|
||||||
wait_task = asyncio.create_task(got_one.wait())
|
wait_task = asyncio.create_task(got_one.wait())
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await asyncio.wait_for(wait_task, timeout=6)
|
await asyncio.wait_for(wait_task, timeout=15)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
log.warning(f"URL {url_num}) Timed out waiting for M3U8.")
|
log.warning(f"URL {url_num}) Timed out waiting for M3U8.")
|
||||||
return
|
return
|
||||||
|
|
@ -107,7 +107,8 @@ async def refresh_html_cache(
|
||||||
|
|
||||||
event = a_tag.text(strip=True)
|
event = a_tag.text(strip=True)
|
||||||
|
|
||||||
event_link = a_tag.attributes.get("href")
|
if not (event_link := a_tag.attributes.get("href")):
|
||||||
|
continue
|
||||||
|
|
||||||
if not (span := row.css_first("span.countdown-timer")):
|
if not (span := row.css_first("span.countdown-timer")):
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue