Skip to content

Commit

Permalink
feat: only store first 10 recently played songs in payload
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <git@mattglei.ch>
  • Loading branch information
gleich committed Nov 26, 2024
1 parent cad8c59 commit 2e36dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/apis/applemusic/recent.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ func fetchRecentlyPlayed() ([]song, error) {
for _, s := range response.Data {
songs = append(songs, songFromSongResponse(s))
}
return songs, nil
return songs[10:], nil
}

0 comments on commit 2e36dd7

Please sign in to comment.