rls-discogs/out-ids.jq

9 lines
254 B
Plaintext
Raw Normal View History

2022-03-26 20:50:13 -04:00
#!/usr/bin/env -S jq -cfS
select(._search_result_count > 0) |
{
"rls": ._scene_release_name,
"release_id": .id | tonumber,
"master_id": (if (.master_id | length) > 0 then .master_id | tonumber else null end),
"artist_id": .artists[0].id | tonumber
}