]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube:search] Mark "no results found" error as expected
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 15 Feb 2014 15:30:11 +0000 (16:30 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 15 Feb 2014 15:30:11 +0000 (16:30 +0100)
youtube_dl/extractor/youtube.py

index 8c2c4dfa20b65146545f59671663e143b9f398f4..a8103684301eef0711fdb1f28bd15dcb40c6430b 100644 (file)
@@ -1694,7 +1694,8 @@ class YoutubeSearchIE(SearchInfoExtractor):
             api_response = data['data']
 
             if 'items' not in api_response:
-                raise ExtractorError(u'[youtube] No video results')
+                raise ExtractorError(
+                    u'[youtube] No video results', expected=True)
 
             new_ids = list(video['id'] for video in api_response['items'])
             video_ids += new_ids