Use primary type in the album sort key #243

Merged
wojtek merged 2 commits from 231---differentiate-release-groups-with-same-title-but-different-type-clash into main 2025-01-02 23:24:02 +01:00
Showing only changes of commit d8684f7ea0 - Show all commits

View File

@ -871,7 +871,8 @@ mod tests {
let album = &music_hoard.collection[0].albums[0]; let album = &music_hoard.collection[0].albums[0];
assert_eq!(album.meta.id.mb_ref, AlbumMbRef::CannotHaveMbid); assert_eq!(album.meta.id.mb_ref, AlbumMbRef::CannotHaveMbid);
// To clear the mb_ref we need the album_id to have the mb_ref to identify the correct album. // To clear the mb_ref we need the album_id to have the mb_ref to identify the correct
// album.
album_id.set_mb_ref(AlbumMbRef::CannotHaveMbid); album_id.set_mb_ref(AlbumMbRef::CannotHaveMbid);
assert!(music_hoard assert!(music_hoard
.clear_album_mb_ref(&artist_id, &album_id) .clear_album_mb_ref(&artist_id, &album_id)