This commit is contained in:
calzoneman 2013-05-02 10:28:29 -05:00
parent 1d90ea48d2
commit cf1546ed72
1 changed files with 9 additions and 5 deletions

View File

@ -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,