Handle - for artist and title from olivetin
This commit is contained in:
@@ -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
|
||||||
echo "using artist $2 and title $3"
|
if [ "$2" = "-" ] && [ "$3" = "-" ]; then
|
||||||
python3 download_youtube.py "$@"
|
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
|
# ./process_music.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user