소스 검색

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

Philipp Hagemeister 12 년 전
부모
커밋
78a3a9f89e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      youtube_dl/YoutubeDL.py

+ 2 - 1
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: