musicbrainz-userscripts icon indicating copy to clipboard operation
musicbrainz-userscripts copied to clipboard

Bandcamp: Correctly split "artist - title"

Open kellnerd opened this issue 2 years ago • 1 comments

~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 avatar Dec 03 '21 15:12 kellnerd

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:

  • Separator used for multiple artists: https://underratedrecords.bandcamp.com/album/-
  • Separator as part of the title: https://manuelbackert.bandcamp.com/album/christmoss-time

kellnerd avatar Dec 03 '21 15:12 kellnerd