aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-05 03:44:08 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-05 03:44:08 +0100
commita9c5e5ca6e8fc3fb19e1c9045caf2b2c589bf8f5 (patch)
tree3266aa33b1ad83cb3178ea95de2fb0fad3a5418b /youtube_dl
parentcefcb9fde3bcacc6231f9bba7e025a3a9f21afc3 (diff)
Set required properties for format merging
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/YoutubeDL.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 3786799da..5748ceaf3 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -702,7 +702,7 @@ class YoutubeDL(object):
if req_format in ('-1', 'all'):
formats_to_download = formats
else:
- # We can accept formats requestd in the format: 34/5/best, we pick
+ # We can accept formats requested in the format: 34/5/best, we pick
# the first that is available, starting from left
req_formats = req_format.split('/')
for rf in req_formats:
@@ -712,7 +712,11 @@ class YoutubeDL(object):
formats_info = (self.select_format(format_1, formats),
self.select_format(format_2, formats))
if all(formats_info):
- selected_format = {'requested_formats': formats_info}
+ selected_format = {
+ 'requested_formats': formats_info,
+ 'format': rf,
+ 'ext': formats_info[0]['ext'],
+ }
else:
selected_format = None
else: