From 3d360a41f75f1d111532b0e4c3016e88d09ac3f3 Mon Sep 17 00:00:00 2001 From: javalsai Date: Mon, 17 Mar 2025 18:50:54 +0100 Subject: [PATCH] feat: add a dupped summary --- spotify/update-playlist.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spotify/update-playlist.sh b/spotify/update-playlist.sh index 9f0387a..daeecb3 100755 --- a/spotify/update-playlist.sh +++ b/spotify/update-playlist.sh @@ -47,3 +47,6 @@ printf "$ARR dumped it as text on \x1b[35m%s\x1b[0m\n" "$PLAYLIST_TXT" jq -c '.[].track | ( [.id, .name, .album.name, (.album.artists | map(.name))] )' "$PLAYLIST_JSON" \ > "$SUM_PLAYLIST_JSON" printf "$ARR dumped summary metadata on \x1b[35m%s\x1b[0m\n" "$SUM_PLAYLIST_JSON" + +printf "Dupped Songs:\n" +sort < "$PLAYLIST_TXT" | uniq -d