Fix YouTube search

This commit is contained in:
calzoneman 2013-05-21 12:18:15 -04:00
parent f8b0b06caf
commit 0b29aa5d0e
1 changed files with 4 additions and 2 deletions

View File

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