mirror of
https://github.com/levogevo/add-synced-lyrics.git
synced 2026-07-21 21:45:21 +00:00
switch to dedicated echo_ functions
This commit is contained in:
+3
-3
@@ -6,7 +6,7 @@
|
||||
get_deezer_isrc_response() {
|
||||
local isrc="$1"
|
||||
if [[ -z "${isrc}" ]]; then
|
||||
error "missing isrc"
|
||||
echo_fail "missing isrc"
|
||||
return 1
|
||||
fi
|
||||
|
||||
@@ -20,7 +20,7 @@ get_deezer_isrc_response() {
|
||||
get_deezer_url() {
|
||||
local isrc="$1"
|
||||
if [[ -z "${isrc}" ]]; then
|
||||
error "missing isrc"
|
||||
echo_fail "missing isrc"
|
||||
return 1
|
||||
fi
|
||||
|
||||
@@ -31,7 +31,7 @@ get_deezer_url() {
|
||||
jqResult="$(jq -r .link <<<"${deezerResponse}")"
|
||||
|
||||
if ! jq_result_valid "${jqResult}"; then
|
||||
error "could not get link from deezer for ${isrc}"
|
||||
echo_fail "could not find link from deezer for ${isrc}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user