From 4d22cb05b31b3bb0492aeffc3eb36cde46f3d677 Mon Sep 17 00:00:00 2001 From: taku0220 Date: Wed, 19 May 2021 03:02:08 +0900 Subject: [PATCH] [scan]Add sort tags for ALAC --- src/library/filescanner_ffmpeg.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/library/filescanner_ffmpeg.c b/src/library/filescanner_ffmpeg.c index 92f0072c..741ac083 100644 --- a/src/library/filescanner_ffmpeg.c +++ b/src/library/filescanner_ffmpeg.c @@ -164,6 +164,13 @@ static const struct metadata_map md_map_generic[] = { "album-sort", 0, mfi_offsetof(album_sort), NULL }, { "compilation", 1, mfi_offsetof(compilation), NULL }, + // ALAC sort tags + { "sort_name", 0, mfi_offsetof(title_sort), NULL }, + { "sort_artist", 0, mfi_offsetof(artist_sort), NULL }, + { "sort_album", 0, mfi_offsetof(album_sort), NULL }, + { "sort_album_artist", 0, mfi_offsetof(album_artist_sort), NULL }, + { "sort_composer", 0, mfi_offsetof(composer_sort), NULL }, + // These tags are used to determine if files belong to a common compilation // or album, ref. https://picard.musicbrainz.org/docs/tags { "MusicBrainz Album Id", 1, mfi_offsetof(songalbumid), parse_albumid },