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) {
|
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({
|
getJSON({
|
||||||
host: "gdata.youtube.com",
|
host: "gdata.youtube.com",
|
||||||
port: 80,
|
port: 80,
|
||||||
|
|
Loading…
Reference in New Issue