mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 10:33:18 +00:00
Update Streamer class
This commit is contained in:
parent
24478b6320
commit
7040300b3e
@ -56,12 +56,10 @@ module.exports = class {
|
|||||||
})
|
})
|
||||||
.on("finish", () => {
|
.on("finish", () => {
|
||||||
this.logger('Streamer', station.name + " / " + "Finished");
|
this.logger('Streamer', station.name + " / " + "Finished");
|
||||||
this.map.delete(station.name);
|
|
||||||
this.play(station);
|
this.play(station);
|
||||||
})
|
})
|
||||||
.on("error", error => {
|
.on("error", error => {
|
||||||
this.logger('Streamer', station.name + " / " + "Error");
|
this.logger('Streamer', station.name + " / " + "Error");
|
||||||
this.map.delete(station.name);
|
|
||||||
this.play(station);
|
this.play(station);
|
||||||
});
|
});
|
||||||
return audioPlayer;
|
return audioPlayer;
|
||||||
|
Loading…
Reference in New Issue
Block a user