mirror of
https://github.com/doms9/iptv.git
synced 2026-01-20 03:49:03 +01:00
e
higher refresh frequency for cdnlivetv misc. edits
This commit is contained in:
parent
45c6992ac9
commit
00000d97d8
2 changed files with 5 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ TAG = "CDNTV"
|
||||||
|
|
||||||
CACHE_FILE = Cache(f"{TAG.lower()}.json", exp=10_800)
|
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"
|
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
|
# continue
|
||||||
|
|
||||||
|
link = channels[0]
|
||||||
|
|
||||||
events.append(
|
events.append(
|
||||||
{
|
{
|
||||||
"sport": league,
|
"sport": league,
|
||||||
"event": name,
|
"event": name,
|
||||||
"link": channels[0], # link
|
"link": link,
|
||||||
"timestamp": event_dt.timestamp(),
|
"timestamp": event_dt.timestamp(),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ urls: dict[str, dict[str, str | float]] = {}
|
||||||
|
|
||||||
TAG = "SPORT9"
|
TAG = "SPORT9"
|
||||||
|
|
||||||
CACHE_FILE = Cache(f"{TAG.lower()}.json", exp=3_600)
|
CACHE_FILE = Cache(f"{TAG.lower()}.json", exp=5_400)
|
||||||
|
|
||||||
BASE_URL = "https://sport9.ru/"
|
BASE_URL = "https://sport9.ru/"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue