aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-01-31 03:50:11 +0600
committerSergey M․ <dstftw@gmail.com>2015-01-31 03:50:11 +0600
commit6d593c3276da6a0a1ad738c779b87a1998c5b06b (patch)
treeae034188adf7fe363b99ab342286d3f350475b69
parent91755ee384ddee314ba40748a44ad1289df8b86c (diff)
[YoutubeDL] Fix video+audio format_id (Closes #4824)
-rwxr-xr-xyoutube_dl/YoutubeDL.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index ce3abaee3..e5a96cad5 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1074,7 +1074,8 @@ class YoutubeDL(object):
selected_format = {
'requested_formats': formats_info,
'format': rf,
- 'format_id': rf,
+ 'format_id': '%s+%s' % (formats_info[0].get('format_id'),
+ formats_info[1].get('format_id')),
'width': formats_info[0].get('width'),
'height': formats_info[0].get('height'),
'resolution': formats_info[0].get('resolution'),