Handle - for artist and title from olivetin

This commit is contained in:
SemvdHoeven
2026-05-08 15:49:50 +02:00
parent bf2fcfbe5c
commit e22b5c6de2

View File

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