mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 18:34:32 +01:00
Make "requested format not available" expected (#1655)
This commit is contained in:
parent
a7685f3bf4
commit
78a3a9f89e
@ -524,7 +524,8 @@ class YoutubeDL(object):
|
||||
formats_to_download = [selected_format]
|
||||
break
|
||||
if not formats_to_download:
|
||||
raise ExtractorError(u'requested format not available')
|
||||
raise ExtractorError(u'requested format not available',
|
||||
expected=True)
|
||||
|
||||
if download:
|
||||
if len(formats_to_download) > 1:
|
||||
|
Loading…
Reference in New Issue
Block a user