aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-07 07:36:25 +0200
committerMax Kellermann <max@duempel.org>2009-07-07 07:36:25 +0200
commit7246d67263b561f722f317eeff087058b8b6a1c0 (patch)
tree5755cb34e8afcb0981ef13a580a94fb11f71c4d4
parent971fbe5d8ed2c5437f47d0ad10b43163ee88a413 (diff)
downloadmpd-7246d67263b561f722f317eeff087058b8b6a1c0.tar.gz
mpd-7246d67263b561f722f317eeff087058b8b6a1c0.tar.xz
mpd-7246d67263b561f722f317eeff087058b8b6a1c0.zip
tag: added tag "AlbumArtistSort"
The tag_id3.c library supports both the documented "TSO2" tag, and the inofficial TXXX/ALBUMARTISTSORT. The Vorbis/FLAC decoder automatically supports the new tag, without further change.
Diffstat (limited to '')
-rw-r--r--NEWS2
-rw-r--r--src/tag.c1
-rw-r--r--src/tag.h1
-rw-r--r--src/tag_id3.c3
4 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 68ca5ed38..b8d2e97e4 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ ver 0.16 (20??/??/??)
- send song modification time to client
- added "update" idle event
- removed the deprecated "volume" command
+* tags:
+ - added tag "AlbumArtistSort"
* decoders:
- ffmpeg: support multiple tags
* mixers:
diff --git a/src/tag.c b/src/tag.c
index 34205d20d..8648c0f77 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -45,6 +45,7 @@ const char *tag_item_names[TAG_NUM_OF_ITEM_TYPES] = {
"Artist",
"Album",
"AlbumArtist",
+ [TAG_ALBUM_ARTIST_SORT] = "AlbumArtistSort",
"Title",
"Track",
"Name",
diff --git a/src/tag.h b/src/tag.h
index 4b72dd187..d68753004 100644
--- a/src/tag.h
+++ b/src/tag.h
@@ -34,6 +34,7 @@ enum tag_type {
TAG_ITEM_ARTIST,
TAG_ITEM_ALBUM,
TAG_ITEM_ALBUM_ARTIST,
+ TAG_ALBUM_ARTIST_SORT,
TAG_ITEM_TITLE,
TAG_ITEM_TRACK,
TAG_ITEM_NAME,
diff --git a/src/tag_id3.c b/src/tag_id3.c
index ce0386a51..019ad7ada 100644
--- a/src/tag_id3.c
+++ b/src/tag_id3.c
@@ -237,6 +237,7 @@ tag_id3_parse_txxx_name(const char *name)
enum tag_type type;
const char *name;
} musicbrainz_txxx[] = {
+ { TAG_ALBUM_ARTIST_SORT, "ALBUMARTISTSORT" },
{ TAG_MUSICBRAINZ_ARTISTID, "MusicBrainz Artist Id" },
{ TAG_MUSICBRAINZ_ALBUMID, "MusicBrainz Album Id" },
{ TAG_MUSICBRAINZ_ALBUMARTISTID,
@@ -332,7 +333,7 @@ struct tag *tag_id3_import(struct id3_tag * tag)
getID3Info(tag, ID3_FRAME_ALBUM_ARTIST,
TAG_ITEM_ALBUM_ARTIST, ret);
getID3Info(tag, ID3_FRAME_ALBUM_ARTIST_SORT,
- TAG_ITEM_ALBUM_ARTIST, ret);
+ TAG_ALBUM_ARTIST_SORT, ret);
getID3Info(tag, ID3_FRAME_TITLE, TAG_ITEM_TITLE, ret);
getID3Info(tag, ID3_FRAME_ALBUM, TAG_ITEM_ALBUM, ret);
getID3Info(tag, ID3_FRAME_TRACK, TAG_ITEM_TRACK, ret);