Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
daniep01 authored and actions-user committed Aug 17, 2022
1 parent 97cd3f5 commit be6497a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit be6497a

Please sign in to comment.