mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
fix: update huya live parse
This commit is contained in:
parent
272e2dd28e
commit
a5d567092d
@ -554,10 +554,7 @@ async def get_huya_app_stream_url(url: str, proxy_addr: OptionalStr = None, cook
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
flv_url = 'https://' + play_url_list[0]['flv_url'].split('://')[1]
|
flv_url = 'https://' + play_url_list[0]['flv_url'].split('://')[1]
|
||||||
try:
|
record_url = flv_url
|
||||||
record_url = await async_req(flv_url, proxy_addr=proxy_addr, headers=headers, redirect_url=True, timeout=15)
|
|
||||||
except TimeoutError:
|
|
||||||
record_url = flv_url
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'anchor_name': anchor_name,
|
'anchor_name': anchor_name,
|
||||||
@ -3164,4 +3161,4 @@ async def get_faceit_stream_data(url: str, proxy_addr: OptionalStr = None, cooki
|
|||||||
result['anchor_name'] = anchor_name
|
result['anchor_name'] = anchor_name
|
||||||
else:
|
else:
|
||||||
result = {'anchor_name': anchor_name, 'is_live': False}
|
result = {'anchor_name': anchor_name, 'is_live': False}
|
||||||
return result
|
return result
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user