'Get the latest details from the player.'

def update(self):

    time.sleep(1)
    playstate = self.send_gpmdp_msg('playback', 'getPlaybackState')
    if (playstate is None):
        return
    self._status = PLAYBACK_DICT[str(playstate['value'])]
    time_data = self.send_gpmdp_msg('playback', 'getCurrentTime')
    if (time_data is not None):
        self._seek_position = int((time_data['value'] / 1000))
    track_data = self.send_gpmdp_msg('playback', 'getCurrentTrack')
    if (track_data is not None):
        self._title = track_data['value']['title']
        self._artist = track_data['value']['artist']
        self._albumart = track_data['value']['albumArt']
        self._duration = int((track_data['value']['duration'] / 1000))
    volume_data = self.send_gpmdp_msg('volume', 'getVolume')
    if (volume_data is not None):
        self._volume = (volume_data['value'] / 100)
