youtube-dl

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

commit 790d4fcbe1559606d35bad20120e230b4223aa91
parent f03b88b3fb67a14998186787ba5c90f3e2c96a7b
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Tue, 26 Feb 2013 10:43:35 -0800

Merge pull request #715 from joksnet/no_video_results

[YT Search] No results if items is not in response
Diffstat:
Myoutube_dl/InfoExtractors.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py @@ -1478,6 +1478,10 @@ class YoutubeSearchIE(InfoExtractor): return api_response = json.loads(data)['data'] + if not 'items' in api_response: + self._downloader.trouble(u'[youtube] No video results') + return + new_ids = list(video['id'] for video in api_response['items']) video_ids += new_ids