diff options
author | Max Kellermann <max@duempel.org> | 2014-09-29 18:55:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-09-29 18:55:59 +0200 |
commit | 3560dc4be60e6e3c47c687b9702a62a610909546 (patch) | |
tree | 7d3418f2bbb229cb36c6031ebb69e229640c70e1 | |
parent | b002ea9a20ea2a9b36c4f577bfeb506ff2cf0696 (diff) | |
download | mpd-3560dc4be60e6e3c47c687b9702a62a610909546.tar.gz mpd-3560dc4be60e6e3c47c687b9702a62a610909546.tar.xz mpd-3560dc4be60e6e3c47c687b9702a62a610909546.zip |
Tag: support "AlbumSort"
The new tag is supported by all decoders that use the tag name table,
and the ID3v2 tag "TSOA" maps to it.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/tag/TagId3.cxx | 3 | ||||
-rw-r--r-- | src/tag/TagNames.c | 1 | ||||
-rw-r--r-- | src/tag/TagType.h | 1 |
4 files changed, 6 insertions, 1 deletions
@@ -67,7 +67,7 @@ ver 0.19 (not yet released) * configuration - allow playlist directory without music directory - use XDG to auto-detect "music_directory" and "db_file" -* add tag "MUSICBRAINZ_RELEASETRACKID" +* add tags "AlbumSort", "MUSICBRAINZ_RELEASETRACKID" * new resampler option using libsoxr * ARM NEON optimizations * install systemd unit for socket activation diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx index c179d6996..02dc58364 100644 --- a/src/tag/TagId3.cxx +++ b/src/tag/TagId3.cxx @@ -350,6 +350,9 @@ scan_id3_tag(struct id3_tag *tag, TAG_ALBUM_ARTIST, handler, handler_ctx); tag_id3_import_text(tag, ID3_FRAME_ARTIST_SORT, TAG_ARTIST_SORT, handler, handler_ctx); + + tag_id3_import_text(tag, "TSOA", TAG_ALBUM_SORT, handler, handler_ctx); + tag_id3_import_text(tag, ID3_FRAME_ALBUM_ARTIST_SORT, TAG_ALBUM_ARTIST_SORT, handler, handler_ctx); tag_id3_import_text(tag, ID3_FRAME_TITLE, TAG_TITLE, diff --git a/src/tag/TagNames.c b/src/tag/TagNames.c index fb4f5bbc2..e051c5863 100644 --- a/src/tag/TagNames.c +++ b/src/tag/TagNames.c @@ -24,6 +24,7 @@ const char *const tag_item_names[TAG_NUM_OF_ITEM_TYPES] = { [TAG_ARTIST] = "Artist", [TAG_ARTIST_SORT] = "ArtistSort", [TAG_ALBUM] = "Album", + [TAG_ALBUM_SORT] = "AlbumSort", [TAG_ALBUM_ARTIST] = "AlbumArtist", [TAG_ALBUM_ARTIST_SORT] = "AlbumArtistSort", [TAG_TITLE] = "Title", diff --git a/src/tag/TagType.h b/src/tag/TagType.h index 5fd07d2e8..0aa6b4a51 100644 --- a/src/tag/TagType.h +++ b/src/tag/TagType.h @@ -38,6 +38,7 @@ enum TagType TAG_ARTIST, TAG_ARTIST_SORT, TAG_ALBUM, + TAG_ALBUM_SORT, TAG_ALBUM_ARTIST, TAG_ALBUM_ARTIST_SORT, TAG_TITLE, |