[YoutubeDL] Copy over format metadata when merging (Fixes #4671)
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 9 Jan 2015 19:50:23 +0000 (20:50 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 9 Jan 2015 19:50:23 +0000 (20:50 +0100)
youtube_dl/YoutubeDL.py

index 24d6c2de7670d2139259d1cdd5a068e81f5f0bb3..e34b36016e72e87653ba76e99f1ebcc37d937d48 100755 (executable)
@@ -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