summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-24 02:57:48 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-24 02:57:48 +0100
commit26a5c96dfd8ed2937f602a360c7eee4ed684d3ee (patch)
tree8cefae04cf0d294aff5b5c21e5ca1dc531cb4fed
parent39caa55d510f35ef8cb9c322b3eb7157d6a2f3ef (diff)
downloadmsc-26a5c96dfd8ed2937f602a360c7eee4ed684d3ee.tar.gz
dzq: Include album title in output
This makes it a lot easier to differentiate between multiple copies of the same track by the one artist.
-rwxr-xr-xdz/dzq3
1 files changed, 1 insertions, 2 deletions
diff --git a/dz/dzq b/dz/dzq
index cb8579a..bca7adc 100755
--- a/dz/dzq
+++ b/dz/dzq
@@ -10,8 +10,7 @@ rm /tmp/dzq 2> /dev/null
curl -s "https://www.deezer.com/search/$q" |
grep __DZR_APP_STATE__ |
cut -d= -f2- |
-jq -r '.TRACK.data[] | .SNG_TITLE + "\n" + .ART_NAME + "\n" + .SNG_ID' 2>&- |
-paste - - - |
+jq -r '.TRACK.data[] | .SNG_TITLE + "\t" + .ART_NAME + "\t" + .ALB_TITLE + "\t" + .SNG_ID' 2>&- |
sed 's/ */ /g' |
head -${2:-10} |
nl -w 2 |