Files
music-tools/download-youtube.sh
2026-05-19 20:23:59 +00:00

16 lines
398 B
Bash
Executable File

#!/bin/bash
echo "Downloading youtube song $1"
source .env/bin/activate
if [ "$2" = "-" ] && [ "$3" = "-" ]; then
echo "Downloading only with url, ignoring artist and title"
python3 download_youtube.py "$1"
else
echo "Downloading only with url, ignoring artist and title"
echo "using artist $2 and title $3"
python3 download_youtube.py "$@"
fi
./process_music.sh
echo "Done!"