Browse Source

Set required properties for format merging

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
a9c5e5ca6e
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      youtube_dl/YoutubeDL.py

+ 6
- 2
youtube_dl/YoutubeDL.py View File

@ -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:


Loading…
Cancel
Save