This commit is contained in:
reality 2013-07-09 21:16:41 +00:00
parent 8688ee05ba
commit 7eeb687385

View File

@ -20,6 +20,7 @@ var soundcloud = function(dbot) {
}, function(error, response, body) { }, function(error, response, body) {
if(body.length != 0) { if(body.length != 0) {
body = body[0]; body = body[0];
if(!body.genre) body.genre = '';
event.reply(dbot.t('sc_track', { event.reply(dbot.t('sc_track', {
'title': body.title, 'title': body.title,
'artist': body.user.username, 'artist': body.user.username,
@ -49,6 +50,7 @@ var soundcloud = function(dbot) {
}, function(error, response, body) { }, function(error, response, body) {
if(response.statusCode == 200) { if(response.statusCode == 200) {
if(body.kind == 'track') { if(body.kind == 'track') {
if(!body.genre) body.genre = '';
event.reply(dbot.t('sc_track', { event.reply(dbot.t('sc_track', {
'title': body.title, 'title': body.title,
'artist': body.user.username, 'artist': body.user.username,