From 0b29aa5d0e67d408ab66f0f818bfb96746df643b Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 21 May 2013 12:18:15 -0400 Subject: [PATCH] Fix YouTube search --- channel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/channel.js b/channel.js index 9f79b125..fe1dc037 100644 --- a/channel.js +++ b/channel.js @@ -447,8 +447,10 @@ Channel.prototype.search = function(query, callback) { if(query.trim() == "") { return; } - InfoGetter.getYTSearchResults(query, function(vids) { - callback(vids); + InfoGetter.getYTSearchResults(query, function(err, vids) { + if(!err) { + callback(vids); + } }); return; }