mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
replace time4tv with embedhd
This commit is contained in:
parent
7a2caba955
commit
00000d918e
5 changed files with 146 additions and 146 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue