Don't accept '-1' as format, 'all' is clearer
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 11 Mar 2015 16:38:35 +0000 (17:38 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 11 Mar 2015 16:38:35 +0000 (17:38 +0100)
youtube_dl/YoutubeDL.py

index bce7587fd89e59dffdecbc852bc70d9e14db4f14..be5b3c1ab5ff1980ed0db34c599e2a96417b9294 100755 (executable)
@@ -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(','):