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())
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ class Time(datetime):
|
|||
|
||||
|
||||
class Leagues:
|
||||
live_img = "https://i.gyazo.com/978f2eb4a199ca5b56b447aded0cb9e3.png"
|
||||
live_img = "https://i.gyazo.com/4a5e9fa2525808ee4b65002b56d3450e.png"
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.data = json.loads(
|
||||
|
|
@ -165,7 +165,7 @@ class Leagues:
|
|||
league: str,
|
||||
) -> bool:
|
||||
|
||||
pattern = re.compile(r"\s+(?:-|vs\.?|at|@)\s+", flags=re.IGNORECASE)
|
||||
pattern = re.compile(r"\s+(?:-|vs\.?|at|@)\s+", re.IGNORECASE)
|
||||
|
||||
if pattern.search(event):
|
||||
t1, t2 = re.split(pattern, event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue