Forums » Bugs & Problems Search

When Does a Track Go From Skipped To Played in Dynamic Playlist New Reply

Author Post
Posts: 2
Registered: Jul 21, 2011

I'm working on a radio app for Spotify that uses the dynamic playlist API. I'm trying to determine the best time to fetch the next song. I initially tried getting the next song essentially immediately, but I noticed in the session that the previous track showed up as skipped. I'm assuming that songs marked as skipped will affect the session negatively, but if that's not the case, then it won't matter.

So basically, should I worry about skipped songs, and if so, what's the earliest point I can fetch the next song?

Posts: 713
Registered: Sep 08, 2008

andrew - there's a 10 second window. If you get the next track within 10 seconds of a track starting, the first track will be considered to be skipped. Note that there is a new 'lookahead' option to dynamic playlist that may help. If you add a lookahead=1 to your call to get the next track, you will receive 2 tracks, the one to play now, and the one that will be the next track if no user action (ratings skips bans etc) takes place that could affect the playlist. lookahead can range from 0 to 5. The feature is so new that the docs haven't been pushed yet. Give it a go and let us know if this helps. -- Paul

Posts: 2
Registered: Jul 21, 2011

Excellent. That should be perfect. Thanks for the quick response!

Reply to this Thread

You must log in to post a reply.