Default to -f best-audio when only audio is requested

This commit is contained in:
Philipp Hagemeister 2014-01-22 14:53:23 +01:00
parent 8908741806
commit de3ef3ed58
2 changed files with 6 additions and 2 deletions

View file

@ -713,7 +713,7 @@ class YoutubeDL(object):
self.list_formats(info_dict)
return
req_format = self.params.get('format', 'best')
req_format = self.params.get('format')
if req_format is None:
req_format = 'best'
formats_to_download = []