This commit is contained in:
doms9 2025-09-03 18:41:07 -04:00
parent 26eac184ee
commit 00000d96a5
3 changed files with 76 additions and 77 deletions

View file

@ -19,7 +19,6 @@ CACHE_FILE = Path(__file__).parent / "caches" / "tvpass.json"
def load_cache() -> dict[str, str]:
try:
data = json.loads(CACHE_FILE.read_text(encoding="utf-8"))
return {} if 8 <= datetime.now(TZ).hour <= 12 else data
except (FileNotFoundError, json.JSONDecodeError):
return {}