forked from GitHub/dbot
pls
This commit is contained in:
parent
6b52141245
commit
9733fa6185
@ -21,13 +21,15 @@ var radio = function(dbot) {
|
|||||||
|
|
||||||
stream.on('response', function(res) {
|
stream.on('response', function(res) {
|
||||||
this.data = res.headers;
|
this.data = res.headers;
|
||||||
_.each(this.config.announce, function(a) {
|
if(res.headers['icy-name']) {
|
||||||
dbot.say(a.server, a.name, dbot.t('now_online', {
|
_.each(this.config.announce, function(a) {
|
||||||
'name': res.headers['icy-name'],
|
dbot.say(a.server, a.name, dbot.t('now_online', {
|
||||||
'desc': res.headers['icy-description'],
|
'name': res.headers['icy-name'],
|
||||||
'url': res.headers['icy-url']
|
'desc': res.headers['icy-description'],
|
||||||
}));
|
'url': res.headers['icy-url']
|
||||||
});
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
stream.on('metadata', function(metadata) {
|
stream.on('metadata', function(metadata) {
|
||||||
|
Loading…
Reference in New Issue
Block a user