This commit is contained in:
lanxu 2015-07-17 01:22:09 +03:00
parent 0a27dc9fd4
commit 021d9e88be

View File

@ -34,7 +34,7 @@ module.exports = function(config) {
};
youtube.videos.list(videosParams, function(err, resp) {
console.log('respo', resp);
//console.log('respo', resp);
if(resp.items.length <= 0) {
reject('No results');
return;
@ -75,7 +75,7 @@ module.exports = function(config) {
//console.log(resp.items[0].snippet.title);
//console.log(resp.items[0].snippet.channelTitle);
console.log(resp, videoId);
//console.log(resp, videoId);
if(resp.items.length <= 0) {
reject('No results');
return;
@ -96,7 +96,7 @@ module.exports = function(config) {
key: apikey
};
youtube.videos.list(videosParams, function(err2, resp2) {
console.log('respo', resp2);
//console.log('respo', resp2);
if(resp2.items.length <= 0) {
reject('No results');
return;