text mode playlist

This commit is contained in:
javalsai 2024-11-17 20:09:27 +01:00
parent 42148e6292
commit ff36e65ed7
Signed by: javalsai
SSH Key Fingerprint: SHA256:3G83yKhBUWVABVX/vPWH88xnK4+ptMtHkZGCRXD4Mk8
2 changed files with 1125 additions and 1 deletions

1120
spotify/playlist.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -26,4 +26,8 @@ done \
| jq -s 'reduce .[] as $x ([]; . + $x)' \
| jq 'del(.. | .available_markets?, .added_by?, .popularity?)' > playlist.json
printf "downloaded %s songs metadata" "$(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 \
| pv > playlist.txt
printf "and dumped it as text on %s\n" playlist.txt