remove record type test code
This commit is contained in:
parent
6e54242c1d
commit
cecbc9d41b
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user