mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 21:56:53 +01:00
Don't accept '-1' as format, 'all' is clearer
This commit is contained in:
parent
7e195d0e92
commit
3a77719c5a
@ -1086,8 +1086,7 @@ def process_video_result(self, info_dict, download=True):
|
||||
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…
Reference in New Issue
Block a user