plietar / librespot

Open Source Spotify client library
MIT License
1.14k stars 184 forks source link

Can't turn repeat off #237

Open D54 opened 7 years ago

D54 commented 7 years ago

Is there any way to make librespot stop playback at the end of a playlist? It gets spirc: kMessageTypeRepeat, but nothing changes when the playlist ended, starts it again.

herrernst commented 7 years ago

I'm also not happy with the current behavior (a playlist or album loops endlessly). I guess it wouldn't be hard to implement the Repeat All/Repeat 1/Repeat None feature like in the official Spotify client, but I have not looked into it yet.

herrernst commented 7 years ago

I've opened a pull request which changes the hardcoded behaviour to not repeat: #239

D54 commented 7 years ago

Thank you, I appreciate your fast response and solution! My main problem has been solved, but it would be great if we can toggle repeat as @herrernst wrote.