Bug 79 - option to use sort-name instead of name for artist
Summary: option to use sort-name instead of name for artist
Status: CONFIRMED
Alias: None
Product: abcde
Classification: Unclassified
Component: CD lookup (show other bugs)
Version: unspecified
Hardware: All All
: Normal normal
Assignee: Steve McIntyre
URL:
Depends on:
Blocks:
 
Reported: 2018-03-19 22:41 GMT by abcde
Modified: 2018-03-20 04:16 GMT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abcde 2018-03-19 22:41:13 GMT
I like to have my Joseph Haydn music files under "Haydn", not "Joseph" and my music files for The Clash under "Clash" and not under "The". When a new version of abcde comes down I immediately hack it. In abcde-musicbrainz-tool, 


  $a_artist = $a_artist . @{ $release->{'artist-credit'} }[$i]->{'name'};

becomes:

  $a_artist = $a_artist . @{ $release->{'artist-credit'} }[$i]->{'artist'}->{'sort-name'};

It would be nice to have an option so I don't have to do this anymore.

JR
Comment 1 Steve McIntyre 2018-03-20 04:16:03 GMT
ACK.

There's a bit of a problem here with doing this cleanly - when adding Musicbrainz support, I added it in a backwards-compatible way by massaging the output to look like CDDB output. That doesn't have the same rich API to expose both name and sort-name. To expose this properly would needs big structural changes. :-/

I could list both ways round from the Musicbrainz lookup as two different options (where they differ). Or maybe add a specific MB lookup option to always use the sort-name...