From be6497a9b9410af21efceaceca78140f9cf10676 Mon Sep 17 00:00:00 2001 From: daniep01 Date: Wed, 17 Aug 2022 08:26:26 +0000 Subject: [PATCH] Prettified Code! --- index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 226e81a..53d2c5a 100644 --- a/index.js +++ b/index.js @@ -126,23 +126,22 @@ instance.prototype.deviceInformation = function (key, data) { } if (key == 'STREAM STATE') { - console.log('stream state = ' + data); + console.log('stream state = ' + data) if (data['Status'] !== undefined) { - self.streaming = data['Status'] self.setVariable('stream_state', self.streaming) self.checkFeedbacks('streaming_state') - + self.duration = data['Duration'] self.setVariable('stream_duration', self.duration) - + self.bitrate = data['Bitrate'] self.setVariable('stream_bitrate', self.bitrate) - + self.cache = data['Cache Used'] self.setVariable('cache', self.cache) - + self.has_data = true } }