[ixigua] fix 'string indices must be integers'

This commit is contained in:
xiangxw 2022-09-20 11:11:18 +08:00
parent af3468fa05
commit b81b4ae8dd

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):
streams = []
if type(video_list) == dict:
video_list = video_list.values()
for dynamic_video in video_list:
streams.append({
'file_id': dynamic_video['file_hash'],