1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2026-04-27 17:23:26 +00:00

Make "requested format not available" expected (#1655)

This commit is contained in:
Philipp Hagemeister
2013-10-28 11:41:43 +01:00
parent a7685f3bf4
commit 78a3a9f89e
+2 -1
View File
@@ -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: