rls-discogs/out-fallback.jq
2022-03-27 01:50:13 +01:00

5 lines
367 B
Plaintext
Executable File

#!/usr/bin/env -S jq -cfMr
# Convert input JSON into TSV for fallback API search
# cat predb | ./parse-rls.fish | ./search-discogs-elastic.fish | tee es.result.json | ./out-fallback.jq | ./search-discogs-api.fish > api.result.json
select(._search_result_count == 0) | [ ._scene_release_name, ._artist, ._title, ._catno, ._barcode, ._format, ._edition, ._year] | @tsv