Skip to content

Commit

Permalink
fix(spotify): playing wrong stream when artist is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrickert committed Jun 7, 2022
1 parent e2e1b5a commit bbb3da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/spotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const spotifyEngine: PlayerEngine = {
},
async getStream(track, playerOptions, streamOptions) {
const searchResults = await youtubeEngine.search(
`${track.title} ${track.artist}`,
track.artist ? `${track.title} ${track.artist}` : track.title,
playerOptions,
{ limit: 1 }
);
Expand Down

0 comments on commit bbb3da4

Please sign in to comment.