Spotty-Plugin
Spotty-Plugin copied to clipboard
Spotify Connect: Player stops after two songs
Hello,
I have the problem, that when I use the Spotify App with Spotify Connect the playback stops after exactly two songs. It doesn't matter which room I select or if the players are synced or not. It also doesn't matter, if I use the Android, iOS, Windows or web app of Spotify. It also makes no difference, if I start a single song or a whole playlist in the Spotify app. When I select a song from LMS -> My Apps -> Spotty it works without problem.
I enabled debugging of Spotty but found nothing helpful. I also reinstalled LMS and the players (max2play) from scratch, but no change.
In the difference to https://github.com/michaelherger/Spotty-Plugin/issues/14 the player is not disconnected. The song stops at the end (screenshot 1) or sometimes even exeeds the song time (screenshot 2) and the next song is not loaded. Pressing play also do not work. I have to select a new song, then it works again for two songs. So it's a mix of issue https://github.com/michaelherger/Spotty-Plugin/issues/14 and https://github.com/michaelherger/Spotty-Plugin/issues/49.
I have also another setup at a friends place (LMS + max2play + Spotty) with the same issue.
Let me know, if you need further details.
Spotty settings
Screenshot 1
Screenshot 2
Since the log is to long I had to attach it: server.log
I encounter similar issues and found an odd string access-control-max-age" => 604_800
while debugging Slim::Networking::Async::HTTP , see here
Please disable the top three "Advanced Settings" in your screenshot. In particular the first one ("Optimise Pre-Buffering") can cause more harm then it helps. Then try again and report back.
As for the underscore in numbers (604_800
), that's a Perl thing to make numbers easily readable (see eg. https://www.perlmonks.org/?node_id=72112).
Now I disabled all top tree options but unfortunately no change.
I have the same problem. I can play one song on my spotify playlist using spotify connect from my phone. After the song is played it stops. I also have problems with having to try starting a song several times before it starts.
Im using LMS in docker and Hifiberry running on RPI2. From what I can remember this used to work a couple of weeks ago.
Looking at the debug log I can see the song playing and after the song It looks like its trying to start the next song.
$a->{device}{is_active} = ${$a->{actions}{disallows}{"toggling_repeat_track"}}; $a->{device}{is_restricted} = ${$a->{device}{is_private_session}}; $a->{is_playing} = ${$a->{actions}{disallows}{"toggling_repeat_track"}}; $a->{item}{explicit} = ${$a->{actions}{disallows}{"toggling_repeat_track"}}; $a->{item}{is_playable} = ${$a->{actions}{disallows}{"toggling_repeat_track"}}; $a->{shuffle_state} = ${$a->{device}{is_private_session}}; ($a, "stop");
Could you please share the full log file, with a hint about when playback stopped? INFO level should be good enough, as DEBUG is super noisy...
Hi Michael,
I tried to be precise while writing down what I did on mobile and what happened on the SB using connect mode. Maybe it helps. serverlog.txt steps.txt
PS: Thanks for the Perl numbers explanation :)
Are you sure no other device is using your Spotify account at the same time? I'm seeing that Spotty is told (by Spotify) to end playback. This would often happen if somebody else in the same household (or in the office) sharing your account would use the service.
Hi Michael,
I made this walkhrough at my garden place where nobody else was accessing the local network same time. While I have a granted quota extension on my account (dev client id) I haven't shared my account credentials somewhere else because each family member has his/her own account (premium family) and was at work/school at that time and not using apotify at all. I'll try to engage spotify support to check my account though and update here in case there is / was something wrong.
If I can somehow support in the meanwhile please let me know.
I have the same problem. I can play one song on my spotify playlist using spotify connect from my phone. After the song is played it stops. I also have problems with having to try starting a song several times before it starts.
Im using LMS in docker and Hifiberry running on RPI2. From what I can remember this used to work a couple of weeks ago.
Looking at the debug log I can see the song playing and after the song It looks like its trying to start the next song.
I have tried to reproduce the problem but now it seems to be working alright. I suspect I had spotify running on another client that maybe caused my problem. Thanks!
The same is happening to me
Likely a dupe of #82.