mirror of https://github.com/calzoneman/sync.git
Fix #79
This commit is contained in:
parent
1d90ea48d2
commit
cf1546ed72
|
@ -88,7 +88,11 @@ exports.getYTPlaylist = function(id, callback, url) {
|
|||
}
|
||||
|
||||
exports.searchYT = function(terms, callback) {
|
||||
var query = escape(terms.join("/"));
|
||||
// I really miss Python's list comprehensions
|
||||
for(var i = 0; i < terms.length; i++) {
|
||||
terms[i] = escape(terms[i]);
|
||||
}
|
||||
var query = terms.join("/");
|
||||
getJSON({
|
||||
host: "gdata.youtube.com",
|
||||
port: 80,
|
||||
|
|
Loading…
Reference in New Issue