ShyykoSerhiy / vscode-spotify

Use Spotify inside vscode(on Mac, Windows, and Linux).
https://marketplace.visualstudio.com/items/shyykoserhiy.vscode-spotify
MIT License
606 stars 74 forks source link

Using vscode-spotify with Spotifyd works but gives error #140

Open Rubo3 opened 3 years ago

Rubo3 commented 3 years ago

Hi! I'm running on the latest Manjaro KDE edition and I (along with many others, as I can see) had the problem of the "no device detected" message, so I tried using the extension after having opened the Spotify web player, but because I'm lazy, I didn't want to open it every time, so I installed Spotifyd and configured it correctly (I hope, at least, since it works flawlessly with spotify-tui). When I try to play a song with vscode-spotify, with spotifyd running, I get this error:

vscode-spotify: Failed to perform operation
invalid json response body at https://api.spotify.com/v1/me/player/play
reason: Unexpected end of JSON input

The tricky part is that the songs starts playing anyway, and I can control the daemon with the usual playerctl. I can change the song within the extension, too, but I always get this error. How can we resolve this?

Rubo3 commented 3 years ago

Also, if I kill the spotifyd process and try to play a song with vscode-spotify, it doesn't work anymore, but that's right. So I was wondering if you could add some sort of Spotifyd integration, which checks if the daemon is running when the user tries to play a song, and if it's not, then the extension would run it. What do you think?

ShyykoSerhiy commented 3 years ago

I'll have a look at integrating support for spotifyd this weekend. Thanks for feature request.

Rubo3 commented 3 years ago

Thanks!

Rubo3 commented 3 years ago

Hi! Any news?