blob: fbdc0e07c1f8035e1921879fcb6c0b71f9b4d5a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /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
|