Browse Source

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

master
Philipp Hagemeister 11 years ago
parent
commit
78a3a9f89e
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl/YoutubeDL.py

3
youtube_dl/YoutubeDL.py

@ -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…
Cancel
Save