From e22b5c6de27e4de0899d26491707e9b5c4fbe61a Mon Sep 17 00:00:00 2001 From: SemvdHoeven Date: Fri, 8 May 2026 15:49:50 +0200 Subject: [PATCH] Handle - for artist and title from olivetin --- download-youtube.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/download-youtube.sh b/download-youtube.sh index 73ae232..704691a 100755 --- a/download-youtube.sh +++ b/download-youtube.sh @@ -1,8 +1,13 @@ #!/bin/bash echo "Downloading youtube song $1" source .env/bin/activate -echo "using artist $2 and title $3" -python3 download_youtube.py "$@" +if [ "$2" = "-" ] && [ "$3" = "-" ]; then + 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 "$@" +fi # ./process_music.sh