From: Philipp Hagemeister Date: Fri, 9 Jan 2015 19:50:23 +0000 (+0100) Subject: [YoutubeDL] Copy over format metadata when merging (Fixes #4671) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f90ad27375206433cdcb6609816893cb3c29c70d;p=youtube-dl [YoutubeDL] Copy over format metadata when merging (Fixes #4671) --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 24d6c2de7..e34b36016 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -913,6 +913,14 @@ class YoutubeDL(object): 'requested_formats': formats_info, 'format': rf, '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: selected_format = None