Bleuzen / SpotRec

Spotify desktop client recorder for PulseAudio
MIT License
74 stars 17 forks source link

Failed to connect to Spotify #7

Closed steadfasterX closed 4 years ago

steadfasterX commented 4 years ago

what is the intended way to run spotify? I mean I have the web player running as I am not aware of any native spotify client on linux. I even tried spotify-qt which also gets identified by pavucontrol as "Chrome". Pulseaudio is running ofc.. What do I miss here? Package has been installed from AUR (running Manjaro Linux here)

spotrec --debug -s -u -o /home/foo/Musik/
2020-09-25 17:24:25,840 - DEBUG - Logger initialized
2020-09-25 17:24:25,842 - ERROR - Failed to connect to Spotify. (Maybe it's not running yet?)

2020-09-25_17-27

as you can see it looks like there is no recording device which would be spotrec I guess. but as that cannot be started.. :

2020-09-25_17-27_1

realized that maybe I need to install the package spotifyd and I did that as well - looking correctly connected:

image

but even now -- nothing changed at all. everything still the same. same error by spotrec and screens look identical.

steadfasterX commented 4 years ago

ok... got it.

snap install spotify

then it runs as it should..

Bleuzen commented 4 years ago

This script only works with the Spotify desktop client for Linux. On Manjaro there are 3 ways to install it: 1) AUR (spotify) 2) Flatpak (flatpak install flathub com.spotify.Client) 3) Snap (snap install spotify)

SpotRec supports all 3 versions, however I would recommend using Flatpak. Downside of the AUR package: it is not sandboxed Downside of Snap: it has auto updates you can't disabled and the server side is proprietary and owned by Canonical So there is Flatpak left as the best option in my opinion. (Because it is open source and will run Spotify in a sandbox.) But you can use all three options if you want to. The web player is not supported.

steadfasterX commented 4 years ago

thx for your reply @Bleuzen ! I would recommend to add exact your above answer to the README ! :)