Skip to content

Commit

Permalink
fix: correctly format spotify artists string
Browse files Browse the repository at this point in the history
  • Loading branch information
Elbarae1921 committed Jan 21, 2024
1 parent 43b6230 commit 523350b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/services/conversion_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export class ConversionService {

const spotifyTrack = await this.spotifyService.getTrackInfo(id)

const artistsString = spotifyTrack.artists.join(' ')
const artistsString = spotifyTrack.artists
.map((artist) => artist.name)
.join(' ')

const youtubeVideo = await this.youtubeService.searchVideoId(
`${spotifyTrack.name} ${artistsString}`
Expand Down

0 comments on commit 523350b

Please sign in to comment.