mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	Make "requested format not available" expected (#1655)
This commit is contained in:
		@@ -524,7 +524,8 @@ class YoutubeDL(object):
 | 
				
			|||||||
                    formats_to_download = [selected_format]
 | 
					                    formats_to_download = [selected_format]
 | 
				
			||||||
                    break
 | 
					                    break
 | 
				
			||||||
        if not formats_to_download:
 | 
					        if not formats_to_download:
 | 
				
			||||||
            raise ExtractorError(u'requested format not available')
 | 
					            raise ExtractorError(u'requested format not available',
 | 
				
			||||||
 | 
					                                 expected=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if download:
 | 
					        if download:
 | 
				
			||||||
            if len(formats_to_download) > 1:
 | 
					            if len(formats_to_download) > 1:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user