- edit caching method
- misc edits.
This commit is contained in:
doms9 2026-04-01 20:23:29 -04:00
parent b4dc04ad58
commit 00000d90e4
4 changed files with 82 additions and 66 deletions

View file

@ -39,19 +39,17 @@ async def process_event(url: str, url_num: int) -> str | None:
embed_list: list[tuple[int, str]] = ast.literal_eval(embed_list_str)
embed_list.sort(key=lambda i: i[0])
m3u8 = "".join(
chr(
int("".join(c for c in base64.b64decode(v).decode("utf-8") if c.isdigit()))
- sum(map(int, digit_list))
)
for _, v in embed_list
for _, v in sorted(embed_list, key=lambda i: i[0])
)
log.info(f"URL {url_num}) Captured M3U8")
return m3u8.split("&ip")[0]
return m3u8.split("ip=")[0]
async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: