mirror of https://github.com/calzoneman/sync.git
Fix YouTube search
This commit is contained in:
parent
f8b0b06caf
commit
0b29aa5d0e
|
@ -447,8 +447,10 @@ Channel.prototype.search = function(query, callback) {
|
||||||
if(query.trim() == "") {
|
if(query.trim() == "") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
InfoGetter.getYTSearchResults(query, function(vids) {
|
InfoGetter.getYTSearchResults(query, function(err, vids) {
|
||||||
callback(vids);
|
if(!err) {
|
||||||
|
callback(vids);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue