3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-28 05:32:50 +01:00

more youtube debugging

This commit is contained in:
reality 2013-08-07 19:11:07 +00:00
parent bc23d64686
commit 4dd6fab12f

View File

@ -59,6 +59,9 @@ var youtube = function(dbot) {
'json': true
}, function(error, response, body) {
console.log('DEBUG: well it got to the callback of the callback');
console.log('DEBUG: ' + match[2]);
console.log('DEBUG: ' + error);
console.log('DEBUG: ' + body);
if(_.isObject(body) && _.has(body, 'entry')) {
var v = body.entry;
if(!_.has(v, 'yt$rating')) {