replace time4tv with embedhd
This commit is contained in:
doms9 2025-12-22 18:26:47 -05:00
parent 7a2caba955
commit 00000d918e
5 changed files with 146 additions and 146 deletions

View file

@ -5,13 +5,13 @@ from .config import Time
class Cache:
now_ts: float = Time.now().timestamp()
def __init__(self, file: str, exp: int | float) -> None:
self.file = Path(__file__).parent.parent / "caches" / file
self.exp = exp
self.now_ts = Time.now().timestamp()
def is_fresh(self, entry: dict) -> bool:
ts: float | int = entry.get("timestamp", Time.default_8())