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.
This commit is contained in:
@@ -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,
|
||||
|
@@ -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",
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user