dotfiles/.local/bin/downloadMusic
2023-10-26 11:59:58 +02:00

23 lines
482 B
Bash
Executable file

#!/usr/bin/bash
if ! command -v spotdl &>/dev/null; then
notify-send "Spotdl Sync" "Error: spotdl is not installed"
exit 1
fi
FOLDERS=(
"EDM-House"
"Metal-Rock"
"Synth-Chill"
"Lofi-Sleppy"
"Space-Cyberpunk"
"Cyberpunk-Darksynth"
)
notify-send "Spotdl Sync" "Started syncing..."
for folder in "${FOLDERS[@]}"; do
/home/matt/.local/bin/spotdlSync "$folder" # TODO: Change the path to relative without breaking the systemd service
done
notify-send "Spotdl Sync Complete"