Correct retrieval of spotify shuffle state (#7505)

Returned on the current playback response itself, not the device
pull/7514/head
Josh Anderson 2017-05-09 16:35:30 +01:00 committed by Pascal Vizeli
parent 5cb3382425
commit b34c58386c
1 changed files with 1 additions and 2 deletions

View File

@ -176,6 +176,7 @@ class SpotifyMediaPlayer(MediaPlayerDevice):
self._state = STATE_PAUSED
if current.get('is_playing'):
self._state = STATE_PLAYING
self._shuffle = current.get('shuffle_state')
device = current.get('device')
if device is None:
self._state = STATE_IDLE
@ -184,8 +185,6 @@ class SpotifyMediaPlayer(MediaPlayerDevice):
self._volume = device.get('volume_percent') / 100
if device.get('name'):
self._current_device = device.get('name')
if device.get('shuffle_state'):
self._shuffle = device.get('shuffle_state')
def set_volume_level(self, volume):
"""Set the volume level."""