From bfba8304e42e365b1f479c2cf20c3d01c31701a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 16 Sep 2021 04:51:23 +0300 Subject: [PATCH] Update Streamer class --- src/client/classes/Streamer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/classes/Streamer.js b/src/client/classes/Streamer.js index 5aacf9a..895c6a3 100644 --- a/src/client/classes/Streamer.js +++ b/src/client/classes/Streamer.js @@ -27,9 +27,9 @@ module.exports = class { } if(this.mode == "auto"){ - if(!client.stations) return; + if(!client.stations.list) return; - client.stations.forEach(station => { + client.stations.list.forEach(station => { this.play(station); }); } @@ -40,7 +40,7 @@ module.exports = class { let streamers = this.map.keys(); streamers.forEach(streamer => { - if(client.stations.findIndex(station => station.name == streamer)) return; + if(client.stations.list.findIndex(station => station.name == streamer)) return; this.stop(streamer); }); } @@ -119,9 +119,9 @@ module.exports = class { } leave(client) { - if(!client.stations) return; + if(!client.stations.list) return; - client.stations.forEach(station => { + client.stations.list.forEach(station => { this.stop(station); }); }