dotfiles/.local/bin/spotdlSync

14 lines
271 B
Bash
Executable file

#!/usr/bin/bash
FOLDER=$1
if [ ! -d "$HOME/Musica/Listen-To/$FOLDER" ]; then
notify-send "Spotdl Sync" "The folder $FOLDER doesnt exist"
exit 1
fi
cd "$HOME/Musica/Listen-To/$FOLDER"
spotdl sync "${FOLDER,,}.sync.spotdl"
notify-send "Spotdl Sync" "$FOLDER synced"