andrehaveman / spotify-node-applescript

Control Spotify on Mac OSX with NodeJS and AppleScript
MIT License
316 stars 39 forks source link

Position is incorrectly reported #21

Closed stevenpetryk closed 9 years ago

stevenpetryk commented 9 years ago

Following the example code on the README, starting a track, and then running the following:

spotify.getState(function(err, state) {
  console.log(state)
});

Returns:

{ track_id: 'spotify:track:3AhXZa8sUQht0UEdBJgpGc',
  volume: 58,
  position: 0,
  state: 'playing' }

It continues to return 0 as the position until the track has been paused. Only then does it get updated to the current position.

stevenpetryk commented 9 years ago

Just saw this on the Spotify Developer website:

Due to a known issue it is not currently possible to retrieve the player position or the current track’s album art.