mirror of
https://github.com/doms9/iptv.git
synced 2026-04-21 19:46:59 +02:00
e
This commit is contained in:
parent
101928424f
commit
00000d9a9a
1 changed files with 8 additions and 8 deletions
|
|
@ -32,14 +32,14 @@ async def process_event(
|
||||||
url_num: int,
|
url_num: int,
|
||||||
) -> str | None:
|
) -> str | None:
|
||||||
|
|
||||||
if not (
|
r = await network.client.post(
|
||||||
r := await network.client.post(
|
urljoin(API_URLS[sport], "api/v2/generate_stream_info"),
|
||||||
urljoin(API_URLS[sport], "api/v2/generate_stream_info"),
|
headers={"Referer": BASE_URLS[sport]},
|
||||||
headers={"Referer": BASE_URLS[sport]},
|
json={"flavor_id": flavor_id, "media_event_id": media_id},
|
||||||
json={"flavor_id": flavor_id, "media_event_id": media_id},
|
)
|
||||||
)
|
|
||||||
):
|
if r.status_code != 200:
|
||||||
log.warning(f"URL {url_num}) Failed to create post request")
|
log.warning(f"URL {url_num}) Failed to create post request.")
|
||||||
return
|
return
|
||||||
|
|
||||||
data: dict[str, str] = r.json()
|
data: dict[str, str] = r.json()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue