From 7526e4ea5f653df72164272c0c5bdf5881fcc50a Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 4 Feb 2025 22:16:00 -0500 Subject: [PATCH] Remove Personal/Collab in favor of Description It turns out Spotify has made all my playlists public?? Maybe they're unlisted.. but I'm a bit peeved. There's some personal stuff on there!! --- cli.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cli.pl b/cli.pl index 03f104d..5cf6170 100755 --- a/cli.pl +++ b/cli.pl @@ -50,13 +50,11 @@ sub get_playlists { sub describe { my $p = shift; - my $pub = $p->{public} ? "Public" : "Private"; - my $collab = $p->{collaborative} ? "Collaborative" : "Personal"; + my $desc = $p->{description} ? "\"$p->{description}\"\n\n" : ""; my $s = <{name} -By $p->{owner}->{display_name} -$pub & $collab +${desc}By $p->{owner}->{display_name} EOM my $url = "$API/playlists/$p->{id}?fields=tracks.next,tracks.items(added_at,track.name,track.artists(name))"; -- libgit2 1.8.1