mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 09:13:18 +00:00
Update Streamer class
This commit is contained in:
parent
12f3948e40
commit
bfec178de7
@ -38,12 +38,13 @@ module.exports = class {
|
|||||||
logger('Streamer', station.name + " / " + "Error");
|
logger('Streamer', station.name + " / " + "Error");
|
||||||
this.map.delete(station.name);
|
this.map.delete(station.name);
|
||||||
});
|
});
|
||||||
|
return audioPlayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
listen(station) {
|
listen(station) {
|
||||||
let audioPlayer = this.map.get(station.name);
|
let audioPlayer = this.map.get(station.name);
|
||||||
if(!audioPlayer){
|
if(!audioPlayer){
|
||||||
this.play(station);
|
audioPlayer = this.play(station);
|
||||||
}
|
}
|
||||||
return audioPlayer;
|
return audioPlayer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user