beets icon indicating copy to clipboard operation
beets copied to clipboard

mbsync: Configuration option to sort tags alphabetically, instead of by votes

Open tandy-1000 opened this issue 1 year ago • 3 comments

mbsync currently updates the genre tag for changes such as: genre: electro; electronic; synth-pop -> electronic; synth-pop; electro In this case, the only change is the ordering of the tags.

To reduce unnecessary file writes, we can check whether the genre exists in the tag before making a change.

tandy-1000 avatar Jul 28 '22 15:07 tandy-1000

Huh; that's interesting! It would be super useful to have someone do the "detective work" to figure out how this ordering is determined. Checking for identical sets in the strings would be difficult to implement, so it would be better if we could just enforce a deterministic ordering so the same set on of genres MusicBrainz always leads to the same string list.

sampsyo avatar Jul 30 '22 23:07 sampsyo

Huh; that's interesting! It would be super useful to have someone do the "detective work" to figure out how this ordering is determined.

Genres follow a voting system, if all genres are equally weighted, they are sorted in alphabetical order, otherwise they are provided in weight order. image

Checking for identical sets in the strings would be difficult to implement, so it would be better if we could just enforce a deterministic ordering so the same set on of genres MusicBrainz always leads to the same string list.

Maybe just adding an option to apply an alphabetical sort would be a good solution?

tandy-1000 avatar Jul 31 '22 10:07 tandy-1000

Aha, thanks for the extra info! I like the idea of a configuration option to sort alphabetically.

sampsyo avatar Aug 01 '22 00:08 sampsyo