From: Philipp Hagemeister Date: Sat, 15 Feb 2014 15:30:11 +0000 (+0100) Subject: [youtube:search] Mark "no results found" error as expected X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=07ad22b8afb41aa0ef000a67532a6498c0edc592;p=youtube-dl [youtube:search] Mark "no results found" error as expected --- 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