aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-03-11 17:38:35 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-03-11 17:38:35 +0100
commit3a77719c5ac60f7e634a7a8def82acb08ccc9ffc (patch)
tree94168d018d25b980f9b2a33385deac19bb8fdbda /youtube_dl/YoutubeDL.py
parent7e195d0e92772b2ea3c748e319574a81f807e807 (diff)
downloadyoutube-dl-3a77719c5ac60f7e634a7a8def82acb08ccc9ffc.tar.xz
Don't accept '-1' as format, 'all' is clearer
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index bce7587fd..be5b3c1ab 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/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(','):