New 2023 Spotify Plugin

Hello,

I’ve managed to replicate the track skipping error in albums or playlists with the 4.1.1 plugin. This is using Volumio’s latest version, 3.757.

In this situation, I was playing the “Songs to test headphones with” playlist, here:

The playlist was going fine, until it switched to the 48th track, “Golden” by Jill Scott:

It skipped to Solsbury Hill by Peter Gabriel. And no matter how many times I tried to play the track via Spotify Connect, it would revert to Solsbury Hill. This is what happens, from the console log:

> time="2024-10-09T10:09:13-05:00" level=debug msg="handling play player command from aa915703e95f84a76e51772cffd47e74af73df6d"
> time="2024-10-09T10:09:13-05:00" level=debug msg="resolved context of track" uri="spotify:playlist:37i9dQZF1DWZtZ8vUCzche"
> time="2024-10-09T10:09:13-05:00" level=trace msg="fetched new page 0 with 25 items (list: 25)" uri="spotify:playlist:37i9dQZF1DWZtZ8vUCzche"
> time="2024-10-09T10:09:13-05:00" level=warning msg="failed seeking to track in context spotify:playlist:37i9dQZF1DWZtZ8vUCzche" error="could not find track"
> time="2024-10-09T10:09:13-05:00" level=debug msg="loading track (paused: false, position: 0ms)" uri="spotify:track:6vZZtivPrtpggT5SSXsYTy"
> time="2024-10-09T10:09:13-05:00" level=debug msg="put connect state because PLAYER_STATE_CHANGED"
> time="2024-10-09T10:09:13-05:00" level=trace msg="emitting websocket event: will_play"
> SPOTIFY: received: {"type":"will_play","data":{"uri":"spotify:track:6vZZtivPrtpggT5SSXsYTy","play_origin":"playlist"}}
> time="2024-10-09T10:09:13-05:00" level=debug msg="selected format OGG_VORBIS_320 (3a74775d743fa8a4f6f900b7f689099e9706bb36)" uri="spotify:track:6vZZtivPrtpggT5SSXsYTy"
> time="2024-10-09T10:09:13-05:00" level=debug msg="requested aes key for file 3a74775d743fa8a4f6f900b7f689099e9706bb36, gid: 6vZZtivPrtpggT5SSXsYTy"
> time="2024-10-09T10:09:14-05:00" level=debug msg="fetched first chunk of 23, total size is 11824408 bytes" uri="spotify:track:6vZZtivPrtpggT5SSXsYTy"
> time="2024-10-09T10:09:14-05:00" level=trace msg="seek to 0ms (diff: 0ms, samples: 0, bytes: 0)" uri="spotify:track:6vZZtivPrtpggT5SSXsYTy"
> time="2024-10-09T10:09:14-05:00" level=info msg="loaded track \"Solsbury Hill\" (paused: false, position: 0ms, duration: 261560ms, prefetched: false)" uri="spotify:track:6vZZtivPrtpggT5SSXsYTy"
> time="2024-10-09T10:09:14-05:00" level=debug msg="fetched chunk 2/22, size: 524288" uri="spotify:track:6vZZtivPrtpggT5SSXsYTy"
> time="2024-10-09T10:09:14-05:00" level=debug msg="fetched chunk 3/22, size: 524288" uri="spotify:track:6vZZtivPrtpggT5SSXsYTy"
> time="2024-10-09T10:09:14-05:00" level=debug msg="fetched chunk 1/22, size: 524288" uri="spotify:track:6vZZtivPrtpggT5SSXsYTy"

From the log, this error pops up:

time=“2024-10-09T10:09:13-05:00” level=warning msg=“failed seeking to track in context spotify:playlist:37i9dQZF1DWZtZ8vUCzche” error=“could not find track”

When I disconnect from Volumio, I can play the track fine on mobile, desktop, and even spotify connect to different devices that support it (an AVR, for example). Why is this happening with Volumio’s Spotify plugin?

Why are there songs that work on Spotify Connect elsewhere (other devices), everywhere, but not through Volumio?

@volumio @Marco_Melziade @Darmur @balbuze