spotifyripper icon indicating copy to clipboard operation
spotifyripper copied to clipboard

write() vailed: Broken Pipe

Open BombchuLink opened this issue 4 years ago • 1 comments

I've mulled over the code for an hour or so trying to figure out exactly where it's breaking, or why, but I haven't seemed to find anything with my tiny brain lol.

pactl also seems to throw and error and says "You have to specify a sink input index and a sink" when the script is aborted.

I'm sure these two things are related. I'm running everything through pulseaudio, it is creatinga Null Output, and moving Spotify to play in the null output, so idk why it's not all adding up.

BombchuLink avatar Jul 18 '20 17:07 BombchuLink

The script is doing something wrong when assigning the index. I just removed that part and manually put in the index of spotify, which I got by doing the same command my self:

pacmd list-sink-inputs

in the script, set the spotify-variable to wathever the index of spotify from the output of that command is. Before doing this, spotify should be running, and you should have played a song (though its OK to stop playback before starting the script)

Another thing: you might need to install vorbis-tools. This is available for example through apt:

apt-get install vorbis-tools

Another thing that didn't work for me was the path-construction thing which sets the variable script_dir. I hardcoded the path to the directory in which the script lives instead.

Hope this helps.

PrbNoblem avatar Oct 04 '20 10:10 PrbNoblem