1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-28 09:30:57 +01:00

[YoutubeDL] Copy over format metadata when merging (Fixes #4671)

This commit is contained in:
Philipp Hagemeister 2015-01-09 20:50:23 +01:00
parent 230b2287dd
commit f90ad27375

View File

@ -913,6 +913,14 @@ class YoutubeDL(object):
'requested_formats': formats_info, 'requested_formats': formats_info,
'format': rf, 'format': rf,
'ext': formats_info[0]['ext'], 'ext': formats_info[0]['ext'],
'width': formats_info[0].get('width'),
'height': formats_info[0].get('height'),
'resolution': formats_info[0].get('resolution'),
'fps': formats_info[0].get('fps'),
'vcodec': formats_info[0].get('vcodec'),
'vbr': formats_info[0].get('vbr'),
'acodec': formats_info[1].get('acodec'),
'abr': formats_info[1].get('abr'),
} }
else: else:
selected_format = None selected_format = None