From cecbc9d41b096a4c1eac998ab7d04b4fff90d191 Mon Sep 17 00:00:00 2001 From: bux Date: Mon, 28 Mar 2022 01:25:24 +0200 Subject: [PATCH] remove record type test code --- search-deezer-api.fish | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/search-deezer-api.fish b/search-deezer-api.fish index 7bbaf78..a597c4f 100755 --- a/search-deezer-api.fish +++ b/search-deezer-api.fish @@ -21,21 +21,6 @@ set API_OUT (mktemp -t rls.deezer.API.XXXXXXXX.json) set DAPI "https://api.deezer.com/search/album" set UA "search-deezer.fish/v0.0.3" -function deezer_record_type - switch $argv[1] - case (seq 100)CD CD CDA - printf '%s' "album" - case CDEP EP - printf '%s' "ep" - case CDS CDM - printf '%s' "single" - case WEB SINGLE-WEB EP-WEB - printf '%s' "single" - case '*' - printf '' - end -end - while read -l -d (printf '\t') ORG A T C B F E Y set _in_A "$A"; set _in_T "$T"; set _in_C "$C"; set _in_B "$B"; set _in_F "$F"; set _in_E "$E"; set _in_Y "$Y" @@ -68,10 +53,6 @@ while read -l -d (printf '\t') ORG A T C B F E Y continue end - if test -n "$F" - set RECORD_TYPE (deezer_record_type "$F") - end - if test $API_COUNT -eq 0 echo '{}' | jq -SMc --arg rls "$ORG" --arg api_count "$API_COUNT" \ --arg a "$_in_A" --arg t "$_in_T" --arg c "$_in_C" \