Skip to content

Commit

Permalink
fix: return full track url in getTrackId
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrani committed May 14, 2024
1 parent ec5be0b commit acba35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/song.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getTrackId = row => {
if (!trackIdUrl) return

const url = trackIdUrl.split('.com').at(1)
return { url, trackId: url.split('/').at(2) }
return { url: trackIdUrl, trackId: url.split('/').at(2) }
}

const getArtists = row => {
Expand Down

0 comments on commit acba35d

Please sign in to comment.