feat(scrobblers): Only broadcast the main artist to Last.fm #3358
No reviewers
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3358
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Songs on Last.fm only have the main artist set, and including any featured artists hinders Last.fm's song detection
Despite a song having multiple artists, Last.fm only considers the main artist as the "Artist" of the song.
Pull Request Overview
This PR updates the Last.fm scrobbler to send only the main artist name by stripping out featured or additional artists.
&
,,
, orfeaturing
segment.Comments suppressed due to low confidence (1)
src/plugins/scrobbler/services/lastfm.ts:138
@ -142,3 +137,3 @@
duration: songInfo.songDuration,
artist: artist,
artist: songInfo.artist.replace(/(.*?)(?:&|,|featuring).*$/, "$1"),
...(songInfo.album ? { album: songInfo.album } : undefined), // Will be undefined if current song is a video
Consider making the regex case-insensitive (add the
i
flag) and including common shorthand patterns likefeat\.
orft\.
to cover more variations. Also trim the result to remove trailing whitespace.It looks like this would fix #3641. What still needs to be done to get it over the finish line? Happy to lend a hand if needed ☺️
Pull request closed