

The working dir needs to contain the volume dir with the audio files in it.ħ Grab the. (Other starting methods not tested.) The container will exit on playback stop.ĥ (Optional) Change the owner of the audio files if your user isn't a member of a group allowed to use Docker.Ħ (Optional) Run these commands to put album art and other metadata in the audio cd metadata &. If you started it in a web browser, you can close that now. You'll need to use docker-compose down to clean up before using the container again because the way it shuts down is messy.ģ Make sure repeat is not on and start the playlist on the device whose name you set in setup.sh.Ĥ Wait for the playlist to complete. If this kicks back Error response from daemon: Pool overlaps with other one on this address space, then you likely either have a VPN that should be temporarily disabled to create a new Docker network OR you need to choose another IP block because there is an overlapping Docker. Optional: Spotify API Client ID and Client Secret (for metadata).ġ Edit the start.sh and metadata/start.sh files to set the environment variables.Ģ Run these commands to start the Spotify. This project should work as long as spotifyd works.ĭisclaimer: this is a guide only for technical people.Ī Linux machine that runs: Docker with sufficient disk space.Īn internet connection good enough to stream audio from Spotify.Ī Spotify premium account. The bitrate is customizable, it defaults to 320. Optionally, you can grab the metadata from Spotify and automatically insert it into the audio files. After that you must wait for the playlist to finish.

This method requires a user to use Spotify to switch playback to this downloader's device and start the playlist. Here is a self hosted solution to download Spotify playlists in a Docker container silently spinning in the background. There are instructions to getting as many free trials as you want in the README.md.ĭisclaimer: This project was created for technical people. This method requires a Spotify premium account, but it works under the free trial. Using this utility requires a Spotify Web API account. In this project, the bit rate defaults to 320. The audio is premium quality and controlled by spotifyd. It works by creating a Spotify playback device with spotifyd and recording the audio with a pulseaudio loopback and ffmpeg.Īfter you've downloaded your playlist, there's a utility to insert metadata such as cover art and artists into the recordings, which are.

Here's a Spotify playlist downloader that runs in a Docker container.
