higher refresh frequency for cdnlivetv
misc. edits
This commit is contained in:
doms9 2025-12-26 13:51:54 -05:00
parent 45c6992ac9
commit 00000d97d8
2 changed files with 5 additions and 3 deletions

View file

@ -12,7 +12,7 @@ TAG = "CDNTV"
CACHE_FILE = Cache(f"{TAG.lower()}.json", exp=10_800)
API_FILE = Cache(f"{TAG.lower()}-api.json", exp=28_800)
API_FILE = Cache(f"{TAG.lower()}-api.json", exp=19_800)
API_URL = "https://api.cdn-live.tv/api/v1/events/sports"
@ -71,11 +71,13 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
# ):
# continue
link = channels[0]
events.append(
{
"sport": league,
"event": name,
"link": channels[0], # link
"link": link,
"timestamp": event_dt.timestamp(),
}
)