Songs with multiple artists are tagged by Spotify with multiple artists tags. While this is a very good way of tagging, it does not play nice with the scrobbles to Last.fm.
For example, a song by Artist1, featuring Artist2 is tagged on Spotify as Artist=Artist1 and Artist=Artist2. When that song is then scrobbled to Last.fm it is scrobbled as Artist=Artist1, Artist2. This way, many songs are not recognised by Last.fm, because it sees the artist as a single field.
This is a very small patch to fix that problem. When there are multiple artists, only the first artist is used for scrobbling. Spotify appears to be consistent in its tagging, and the first artist is always the main artist. This patch is probably very specific to Spotify, but it serves my needs.
scrobble_only_first_spotify_artist.patch
For example, a song by Artist1, featuring Artist2 is tagged on Spotify as Artist=Artist1 and Artist=Artist2. When that song is then scrobbled to Last.fm it is scrobbled as Artist=Artist1, Artist2. This way, many songs are not recognised by Last.fm, because it sees the artist as a single field.
This is a very small patch to fix that problem. When there are multiple artists, only the first artist is used for scrobbling. Spotify appears to be consistent in its tagging, and the first artist is always the main artist. This patch is probably very specific to Spotify, but it serves my needs.
scrobble_only_first_spotify_artist.patch