Skip to content

Commit

Permalink
ee
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinLiquid committed May 12, 2024
1 parent 5bb5ece commit 62afa8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ class Player {
const takeRight = (arr: any[], n = 1): any[] => n === 0 ? [] : arr.slice(-n)
this.queue.add(
...(await this.sdk.recommendations.get({
seed_artists: takeRight(this.queue.tracks.map(track => track.artists.map(artist => artist.id)).flat(), 5),
seed_tracks: takeRight(this.queue.tracks.map(track => track.id), 5),
seed_artists: takeRight(this.queue.tracks.map(track => track.artists.map(artist => artist.id)).flat(), 4),
seed_tracks: takeRight(this.queue.tracks.map(track => track.id), 4),
limit: 1
})).tracks
)
Expand Down

0 comments on commit 62afa8b

Please sign in to comment.