This commit is contained in:
parent
f8dd88e8a5
commit
9b36a2ed1e
@ -115,9 +115,7 @@ class ProxyElem:
|
||||
|
||||
try:
|
||||
async with self.local() as session:
|
||||
logger.info(request_data.json())
|
||||
logger.info(request_data)
|
||||
resp = await session.post(proxy_server, json=request_data.dict())
|
||||
resp = await session.post(proxy_server, json=json.loads(request_data.json()))
|
||||
response_data = cast(
|
||||
ProxyResponse, ProxyResponse.parse_raw(await resp.text())
|
||||
)
|
||||
@ -224,9 +222,6 @@ for proxy_provider in proxies.values():
|
||||
streamlink_sessions[proxy_elem.proxy].set_option(
|
||||
"http-proxy", "socks5://" + proxy_elem.proxy
|
||||
)
|
||||
streamlink_sessions[proxy_elem.proxy].set_option(
|
||||
"https-proxy", "socks5://" + proxy_elem.proxy
|
||||
)
|
||||
|
||||
if icecast_server is not None and stream_server is not None:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user