summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-02-15 16:30:11 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-02-15 16:30:11 +0100
commit07ad22b8afb41aa0ef000a67532a6498c0edc592 (patch)
treedef060d1c9a9a32e1c35033e3e8759b016992fa9
parentb53466e1680db3d710415329674c887d38af46c5 (diff)
downloadyoutube-dl-07ad22b8afb41aa0ef000a67532a6498c0edc592.tar.gz
youtube-dl-07ad22b8afb41aa0ef000a67532a6498c0edc592.tar.xz
youtube-dl-07ad22b8afb41aa0ef000a67532a6498c0edc592.zip
[youtube:search] Mark "no results found" error as expected
-rw-r--r--youtube_dl/extractor/youtube.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 8c2c4dfa2..a81036843 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -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