aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-09 20:50:23 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-09 20:50:23 +0100
commitf90ad27375206433cdcb6609816893cb3c29c70d (patch)
tree532e87982e68df09e71cac37c32bd9526ae4a907 /youtube_dl
parent230b2287dd75430d0dcc3c22b407d916cb608b77 (diff)
[YoutubeDL] Copy over format metadata when merging (Fixes #4671)
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/YoutubeDL.py8
1 files changed, 8 insertions, 0 deletions
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