Update Streamer class

This commit is contained in:
Christer Warén 2021-09-16 03:34:31 +03:00
parent 72c1609503
commit 469374f25e

View File

@ -94,14 +94,6 @@ module.exports = class {
this.logger('Streamer', station.name + " / " + "AutoPaused");
this.play(station);
})
.on('stateChange', (oldState, newState) => {
if (oldState.status === AudioPlayerStatus.Idle && newState.status === AudioPlayerStatus.Playing) {
this.logger('Streamer', station.name + " / " + "Playing");
} else if (newState.status === AudioPlayerStatus.Idle) {
this.logger('Streamer', station.name + " / " + "Idle");
this.play(station);
}
})
.on('error', error => {
this.logger('Streamer', station.name + " / " + "Error" + "\n" + error);
this.play(station);