[YoutubeDL] Allow selection by more extensions

This commit is contained in:
Philipp Hagemeister 2015-01-08 16:14:16 +01:00
parent bd6b25ce0e
commit 0217c78377
3 changed files with 40 additions and 5 deletions

View file

@ -786,7 +786,7 @@ class YoutubeDL(object):
if video_formats:
return video_formats[0]
else:
extensions = ['mp4', 'flv', 'webm', '3gp', 'm4a']
extensions = ['mp4', 'flv', 'webm', '3gp', 'm4a', 'mp3', 'ogg', 'aac', 'wav']
if format_spec in extensions:
filter_f = lambda f: f['ext'] == format_spec
else: