mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
more youtube debugging
This commit is contained in:
parent
bc23d64686
commit
4dd6fab12f
@ -59,6 +59,9 @@ var youtube = function(dbot) {
|
|||||||
'json': true
|
'json': true
|
||||||
}, function(error, response, body) {
|
}, function(error, response, body) {
|
||||||
console.log('DEBUG: well it got to the callback of the callback');
|
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')) {
|
if(_.isObject(body) && _.has(body, 'entry')) {
|
||||||
var v = body.entry;
|
var v = body.entry;
|
||||||
if(!_.has(v, 'yt$rating')) {
|
if(!_.has(v, 'yt$rating')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user