projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b53466e
)
[youtube:search] Mark "no results found" error as expected
author
Philipp Hagemeister
<phihag@phihag.de>
Sat, 15 Feb 2014 15:30:11 +0000
(16:30 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sat, 15 Feb 2014 15:30:11 +0000
(16:30 +0100)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 8c2c4dfa20b65146545f59671663e143b9f398f4..a8103684301eef0711fdb1f28bd15dcb40c6430b 100644
(file)
--- 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