murdos / musicbrainz-userscripts

Collection of userscripts for MusicBrainz, by various authors
549 stars 91 forks source link

Bandcamp: Correctly split "artist - title" #446

Open kellnerd opened 2 years ago

kellnerd commented 2 years ago

~Fixes ESLint errors and bumps the version (still necessary after #441 has been merged).~ (Directly pushed to master as I don't want to further delay the version bump.)

Correctly splits "artist - title" patterns for releases with per-track artists using a non-greedy expression for the artist as the title might contain the " - " separator (e.g. for ETI). It might be possible in certain cases that the artist credit contains the separator instead, but I'd rather accidentally have an artist as part of the title (rarer and easier to fix, especially if " - " separates multiple artists which have to be split anyway) than the artist containing parts of the title.

kellnerd commented 2 years ago

I would like to have a second opinion regarding 1bfdf8a6e916f8b043c559865d4f3136d1db10c7, since I am not entirely sure how often the two cases actually occur. Examples which I used for testing: