michaelherger / librespot

Open Source Spotify client library
MIT License
19 stars 8 forks source link

LMS/Spotty/Spotify-Connect usage: Last song stops playing 10 seconds before end #10

Open noothangpersonel opened 1 year ago

noothangpersonel commented 1 year ago

When I select a single song in the Spotify mobile or desktop application and play it with Spotify Connect (the devices icon in the bottom) on my Squeezebox Classic using LMS/Spotty, it always stops playing exactly 10 seconds before the end of the song. This does not happen when there are multiple songs in the queue, except for with the last one. Seems the playback gets stopped before the playback buffer is empty. My LMS/spotty server is an Ubuntu 22.04 LTS machine.

I have been searching for a solution for quite a while, but didn't find anything

michaelherger commented 1 year ago

Are you saying that the last song in a queue would always end 10s early, no matter how many tracks are queued up? Would the same happen eg. with an album?

noothangpersonel commented 1 year ago

I think so yes! I will check that when I'm home. It's easier to reproduce something when it's happening at the start than at the end :-)

noothangpersonel commented 1 year ago

I just tried it with a very short album (https://open.spotify.com/album/4ZmvKvBVOcsZgT9QDG3Q0G?si=-EYJ34qmR-WHUq-ce9240A) and yes: all songs play in full length except for the last one: the last song stop playing about 10 seconds before the end