short json mode playlist (ill stop now)
This commit is contained in:
parent
ff36e65ed7
commit
32e75a9082
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user