logging
Build and Push Docker Images / build-and-push (push) Successful in 28s

This commit is contained in:
2026-02-11 22:40:35 +01:00
parent f1d6311b3d
commit 4c91cfd6e0
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -120,12 +120,18 @@ class CacheManager:
self.invalidate_if_needed()
current = get_channels_hash(self._channels_file)
if current is None:
logger.debug("EPG cache miss: channels.json not found or unreadable")
return None
epg_path = self._epg_cache_file()
if not epg_path.exists():
logger.debug("EPG cache miss: %s does not exist", epg_path)
return None
stored = self._get_stored_hash()
if stored is None:
logger.debug("EPG cache miss: %s does not exist (hash required)", self._hash_file())
return None
if stored != current:
logger.debug("EPG cache miss: channels.json changed (hash %s -> %s)", stored[:16], current[:16])
return None
try:
return epg_path.read_text(encoding="utf-8")