mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 10:47:08 -05:00 
			
		
		
		
	Don't accept '-1' as format, 'all' is clearer
This commit is contained in:
		@@ -1086,8 +1086,7 @@ class YoutubeDL(object):
 | 
				
			|||||||
        if req_format is None:
 | 
					        if req_format is None:
 | 
				
			||||||
            req_format = 'best'
 | 
					            req_format = 'best'
 | 
				
			||||||
        formats_to_download = []
 | 
					        formats_to_download = []
 | 
				
			||||||
        # The -1 is for supporting YoutubeIE
 | 
					        if req_format == 'all':
 | 
				
			||||||
        if req_format in ('-1', 'all'):
 | 
					 | 
				
			||||||
            formats_to_download = formats
 | 
					            formats_to_download = formats
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            for rfstr in req_format.split(','):
 | 
					            for rfstr in req_format.split(','):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user