Skip to content

Instantly share code, notes, and snippets.

@rlan
Last active February 27, 2024 10:58
Show Gist options
  • Save rlan/b96d62ecda9a4049cffbb6e0a3992c30 to your computer and use it in GitHub Desktop.
Save rlan/b96d62ecda9a4049cffbb6e0a3992c30 to your computer and use it in GitHub Desktop.
Bash script to use spotdl to download music from Spotify using official spotdl docker container
#!/bin/bash
usage() {
echo ""
echo "Usage: $0 [URL]"
echo "Example: $0 https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b"
}
if [ "$#" -ne 1 ]; then
echo "Invalid number of arguments!"
usage
exit 1
fi
docker run --rm -v $(pwd):/music spotdl/spotify-downloader download $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment