dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit bdffb1fc9e30a1a4a3ff9d71a579028ad5919692
parent c0004f783f4aa1609ca3f396a9a0158fc9ada5d9
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Mon, 19 Aug 2024 00:12:57 +0200

libspotify: bugfix

Diffstat:
Mscripts/libspotify.rb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/libspotify.rb b/scripts/libspotify.rb @@ -179,7 +179,7 @@ def playlist_overview playlist_id # to download: # playlist_id = '52qgFnbZwV36ogaGUquBDt' client = SpotifyClient.new - playlist_tracks = api_call_get_unpaginate("playlists/#{playlist_id}/tracks", { limit: 50 }) + playlist_tracks = client.api_call_get_unpaginate("playlists/#{playlist_id}/tracks", { limit: 50 }) by_artist = playlist_tracks.group_by { _1.track.artists.first.name } by_artist_album = by_artist.reduce({}) { |h, (artist, tracks)| h[artist] = tracks.group_by { |t| t.track.album.name }; h } res = by_artist_album.reduce({}) do |h, (artist, albums)|