mirror of
https://github.com/doms9/iptv.git
synced 2026-04-21 19:46:59 +02:00
e
- edit scraping for roxie.py - misc edits.
This commit is contained in:
parent
b8c07f8eec
commit
00000d9c93
2 changed files with 8 additions and 3 deletions
|
|
@ -141,12 +141,10 @@ async def main() -> None:
|
||||||
f'tvg-name="{event}" tvg-logo="{info["logo"]}" group-title="Live Events",{event}'
|
f'tvg-name="{event}" tvg-logo="{info["logo"]}" group-title="Live Events",{event}'
|
||||||
)
|
)
|
||||||
|
|
||||||
UA = info.get("UA", network.UA)
|
|
||||||
|
|
||||||
vlc_block = [
|
vlc_block = [
|
||||||
f'#EXTVLCOPT:http-referrer={info["base"]}',
|
f'#EXTVLCOPT:http-referrer={info["base"]}',
|
||||||
f'#EXTVLCOPT:http-origin={info["base"]}',
|
f'#EXTVLCOPT:http-origin={info["base"]}',
|
||||||
f"#EXTVLCOPT:http-user-agent={UA}",
|
f"#EXTVLCOPT:http-user-agent={info.get('UA', network.UA)}",
|
||||||
info["url"],
|
info["url"],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,13 @@ async def process_event(
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if btn := page.locator("button.streambutton").first:
|
||||||
|
await btn.click(
|
||||||
|
force=True,
|
||||||
|
click_count=2,
|
||||||
|
timeout=3_000,
|
||||||
|
)
|
||||||
|
|
||||||
await page.wait_for_function(
|
await page.wait_for_function(
|
||||||
"() => typeof clapprPlayer !== 'undefined'",
|
"() => typeof clapprPlayer !== 'undefined'",
|
||||||
timeout=6_000,
|
timeout=6_000,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue