diff --git a/M3U8/scrapers/cdnlivetv.py b/M3U8/scrapers/cdnlivetv.py index 7cb925e..0086139 100644 --- a/M3U8/scrapers/cdnlivetv.py +++ b/M3U8/scrapers/cdnlivetv.py @@ -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(), } ) diff --git a/M3U8/scrapers/sport9.py b/M3U8/scrapers/sport9.py index 9842af8..418b4b3 100644 --- a/M3U8/scrapers/sport9.py +++ b/M3U8/scrapers/sport9.py @@ -13,7 +13,7 @@ urls: dict[str, dict[str, str | float]] = {} 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/"