Convert spotify search into separate module and allow specifying artist and title while calling script for youtube #8

Merged
sem merged 9 commits from feature/separate-spotify-search-module into main 2026-05-19 20:25:27 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit db02c43066 - Show all commits

View File

@@ -1,8 +1,10 @@
#!/bin/bash #!/bin/bash
echo "Downloading youtube song $1" echo "Downloading youtube song $1"
source .env/bin/activate source .env/bin/activate
python3 download_youtube.py $1
./process_music.sh echo "using artist $2 and title $3"
python3 download_youtube.py $1 $2 $3
# ./process_music.sh
echo "Done!" echo "Done!"

View File

@@ -4,6 +4,7 @@ import sys
artist = "" artist = ""
title = "" title = ""
print(sys.argv)
if len(sys.argv) == 4: if len(sys.argv) == 4:
artist = sys.argv[2] artist = sys.argv[2]
title = sys.argv[3] title = sys.argv[3]