Merge branch 'fix_ixigua' of https://github.com/xiangxw/you-get into xiangxw-fix_ixigua

This commit is contained in:
Mort Yao 2022-10-09 00:05:59 +02:00
commit fa0d9e6515
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -95,6 +95,8 @@ def ixigua_download(url, output_dir='.', merge=True, info_only=False, stream_id=
def convertStreams(video_list, audio_url): def convertStreams(video_list, audio_url):
streams = [] streams = []
if type(video_list) == dict:
video_list = video_list.values()
for dynamic_video in video_list: for dynamic_video in video_list:
streams.append({ streams.append({
'file_id': dynamic_video['file_hash'], 'file_id': dynamic_video['file_hash'],