mirror of
https://github.com/doms9/iptv.git
synced 2026-03-07 11:18:25 +01:00
update M3U8
This commit is contained in:
parent
659f73f5ee
commit
2df2b31a4b
3 changed files with 981 additions and 727 deletions
|
|
@ -154,7 +154,8 @@ class Network:
|
|||
)
|
||||
|
||||
if stealth:
|
||||
await context.add_init_script("""
|
||||
await context.add_init_script(
|
||||
"""
|
||||
Object.defineProperty(navigator, "webdriver", { get: () => undefined });
|
||||
|
||||
Object.defineProperty(navigator, "languages", {
|
||||
|
|
@ -202,7 +203,8 @@ class Network:
|
|||
});
|
||||
|
||||
observer.observe(document.documentElement, { childList: true, subtree: true });
|
||||
""")
|
||||
"""
|
||||
)
|
||||
|
||||
else:
|
||||
context = await browser.new_context()
|
||||
|
|
@ -239,7 +241,7 @@ class Network:
|
|||
got_one: asyncio.Event,
|
||||
) -> None:
|
||||
|
||||
invalids = ["amazonaws", "knitcdn"]
|
||||
invalids = ["amazonaws", "knitcdn", "jwpltx"]
|
||||
|
||||
escaped = [re.escape(i) for i in invalids]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue