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; }