Quaver is a CLI tool that uses ffmpeg, node-ytdl-core, and AppleScript to provide seamless Spotify and YouTube playback(No more App Switching!)
As of now, Quaver only works on MacOS with the Spotify desktop app installed. You also must have the Ffmpeg command line utility installed on your computer.
npm i -g quaver
Playlists are .txt files of:
- Valid YouTube URLs (https://youtube.com/watch?v=...)
- Valid Spotify URIs (spotify:track:...) separated by newlines.
The easiest way to get Spotify URIs is to click the ••• symbol > Share > Copy Spotify URI in the desktop app.
Example:
https://www.youtube.com/watch?v=au2n7VVGv_c
spotify:track:6eT7xZZlB2mwyzJ2sUKG6w
spotify:track:5yuShbu70mtHXY0yLzCQLQ
https://www.youtube.com/watch?v=UYwF-jdcVjY
...
Quaver has one main command: play
To play a playlist, ensure spotify is running and run
quaver play <playlist.txt>
Play/pause/FF is currently being implemented, and 1.1.0 will be released very soon.