Last active
February 27, 2024 10:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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