#! /bin/bash source ./util/menu/deasy source ./util/notify source ./util/dpath query="$(deasy "$1" 'Rip Query')" result="$(spotdl download "$query" --output "$DPATH" --no-cache)" if [[ "$result" =~ .*'No song matches found'.* ]] then notify 'Empty Response' elif [[ "$result" =~ .*'already downloaded'.* ]] then notify 'Already Downloaded' fi exit 0