youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 07ad22b8afb41aa0ef000a67532a6498c0edc592
parent b53466e1680db3d710415329674c887d38af46c5
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Sat, 15 Feb 2014 16:30:11 +0100

[youtube:search] Mark "no results found" error as expected

Diffstat:
Myoutube_dl/extractor/youtube.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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