spot2txt

Export Spotify Playlist Listings as Plaintext
git clone git://git.alexkarle.com.com/spot2txt
Log | Files | Refs | README

commit 7526e4ea5f653df72164272c0c5bdf5881fcc50a (patch)
parent 3bf31903f61730be8e80789173eaa9b9e807119f
Author: Alex Karle <alex@alexkarle.com>
Date:   Tue,  4 Feb 2025 22:16:00 -0500

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!!

Diffstat:
Mcli.pl | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 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 = <<EOM; # $p->{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))";