raitonoberu / sptlrx

Synchronized lyrics in your terminal
MIT License
354 stars 14 forks source link

Clear lyrics when Spotify client is closed #20

Closed Kuuhhl closed 6 months ago

Kuuhhl commented 1 year ago

When I close my spotify client, sptlrx continues to go through the lyrics until it gets to the end of the song. Would it be possible to clear the output when the spotify client is no longer running? I am using sptlrx pipe in polybar and it continues to update the lyrics for minutes after I closed Spotify.

raitonoberu commented 6 months ago

The problem is that Spotify tracks progress on its servers and returns it to all clients (that's how Spotify Connect works). It doesn't know you've closed the client, at least not right away. There's nothing we can do about it.