short json mode playlist (ill stop now)

This commit is contained in:
javalsai 2024-11-18 16:30:32 +01:00
parent ff36e65ed7
commit 32e75a9082
Signed by: javalsai
SSH Key Fingerprint: SHA256:3G83yKhBUWVABVX/vPWH88xnK4+ptMtHkZGCRXD4Mk8

View File

@ -29,5 +29,9 @@ done \
printf "downloaded %s songs metadata\n" "$(jq length playlist.json)" printf "downloaded %s songs metadata\n" "$(jq length playlist.json)"
jq -r '.[].track | ( .name + " - " + (.album.artists | map(.name) | join(", ")) )' playlist.json \ jq -r '.[].track | ( .name + " - " + (.album.artists | map(.name) | join(", ")) )' playlist.json \
| pv > playlist.txt > playlist.txt
printf "and dumped it as text on %s\n" playlist.txt printf "and dumped it as text on %s\n" playlist.txt
jq -c '.[].track | ( [.id, .name, .album.name, (.album.artists | map(.name))] )' playlist.json \
> summary-playlist.json
printf "AND dumped summary metadata on %s\n" summary-playlist.txt