Browse Source

Don't accept '-1' as format, 'all' is clearer

master
Jaime Marquínez Ferrándiz 10 years ago
parent
commit
3a77719c5a
1 changed files with 1 additions and 2 deletions
  1. 3
      youtube_dl/YoutubeDL.py

3
youtube_dl/YoutubeDL.py

@ -1086,8 +1086,7 @@ class YoutubeDL(object):
if req_format is None:
req_format = 'best'
formats_to_download = []
# The -1 is for supporting YoutubeIE
if req_format in ('-1', 'all'):
if req_format == 'all':
formats_to_download = formats
else:
for rfstr in req_format.split(','):

Loading…
Cancel
Save