From 00000d979fccd35ecce62dcf9ff3e3557b3636b6 Mon Sep 17 00:00:00 2001 From: doms9 <96013514+doms9@users.noreply.github.com> Date: Sat, 27 Dec 2025 10:25:35 -0500 Subject: [PATCH] e --- M3U8/scrapers/cdnlivetv.py | 2 ++ M3U8/scrapers/embedhd.py | 2 ++ M3U8/scrapers/ppv.py | 2 ++ M3U8/scrapers/streamcenter.py | 2 ++ M3U8/scrapers/strmd.py | 2 ++ 5 files changed, 10 insertions(+) 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(