diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-02-15 16:30:11 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-02-15 16:30:11 +0100 |
commit | 07ad22b8afb41aa0ef000a67532a6498c0edc592 (patch) | |
tree | def060d1c9a9a32e1c35033e3e8759b016992fa9 /youtube_dl/extractor/youtube.py | |
parent | b53466e1680db3d710415329674c887d38af46c5 (diff) |
[youtube:search] Mark "no results found" error as expected
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 3 |
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 |