MCPcopy
hub / github.com/Guovin/iptv-api / get_current_frozen_set

Function get_current_frozen_set

utils/frozen.py:59–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58
59def get_current_frozen_set() -> Set[str]:
60 now = _now_ts()
61 res = set()
62 for url, meta in list(_frozen.items()):
63 fu = meta.get("frozen_until")
64 if fu and fu > now:
65 res.add(url)
66 else:
67 is_url_frozen(url)
68 return res
69
70
71def load(path: Optional[str]) -> None:

Callers

nothing calls this directly

Calls 3

_now_tsFunction · 0.85
is_url_frozenFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected