diff --git a/M3U8/scrapers/cdnlivetv.py b/M3U8/scrapers/cdnlivetv.py index 0086139..3bf7d0e 100644 --- a/M3U8/scrapers/cdnlivetv.py +++ b/M3U8/scrapers/cdnlivetv.py @@ -21,6 +21,8 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: events = [] if not (api_data := API_FILE.load(per_entry=False)): + log.info("Refreshing API cache") + api_data = {} if r := await network.request( diff --git a/M3U8/scrapers/embedhd.py b/M3U8/scrapers/embedhd.py index 7a3b284..8bef50b 100644 --- a/M3U8/scrapers/embedhd.py +++ b/M3U8/scrapers/embedhd.py @@ -25,6 +25,8 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: now = Time.clean(Time.now()) if not (api_data := API_CACHE.load(per_entry=False)): + log.info("Refreshing API cache") + api_data = {} if r := await network.request(BASE_URL, log=log): diff --git a/M3U8/scrapers/ppv.py b/M3U8/scrapers/ppv.py index 284171a..ef5f18b 100644 --- a/M3U8/scrapers/ppv.py +++ b/M3U8/scrapers/ppv.py @@ -31,6 +31,8 @@ async def get_events(api_url: str, cached_keys: list[str]) -> list[dict[str, str events = [] if not (api_data := API_FILE.load(per_entry=False)): + log.info("Refreshing API cache") + api_data = {} if r := await network.request(api_url, log=log): diff --git a/M3U8/scrapers/streamcenter.py b/M3U8/scrapers/streamcenter.py index d041bf1..bc1de7c 100644 --- a/M3U8/scrapers/streamcenter.py +++ b/M3U8/scrapers/streamcenter.py @@ -35,6 +35,8 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: now = Time.clean(Time.now()) if not (api_data := API_FILE.load(per_entry=False, index=-1)): + log.info("Refreshing API cache") + api_data = [] if r := await network.request( diff --git a/M3U8/scrapers/strmd.py b/M3U8/scrapers/strmd.py index de9055f..30b63ae 100644 --- a/M3U8/scrapers/strmd.py +++ b/M3U8/scrapers/strmd.py @@ -37,6 +37,8 @@ async def get_events(url: str, cached_keys: list[str]) -> list[dict[str, str]]: now = Time.clean(Time.now()) if not (api_data := API_FILE.load(per_entry=False, index=-1)): + log.info("Refreshing API cache") + api_data = [] if r := await network.request(