diff options
author | Daniel <random.mister@gmail.com> | 2011-04-23 16:17:21 +0100 |
---|---|---|
committer | Alex Bennee <alex@bennee.com> | 2011-04-23 16:19:57 +0100 |
commit | 5e5aacfc7174aba9adfbd32238a5756b717e3490 (patch) | |
tree | 6304b36ac662e32e7b5b469945a6babae80b76a0 /src/id3v24_tag.c | |
parent | 55e2c3d68d3ba31190c2484db496e09756852ee6 (diff) |
Add "Album Artist" field to the list of potential fields to edit
Quoth Daniel (Random Mister):
"I just found an extended patch which also includes support for the
album-artist tag in the fill tags dialog. It is an update of the
other, so if you only add this one to the git tree it should work.
I've been using it for over half a year without bugs, so I think it
can be merged into the Git tree."
Written-By: Daniel <random.mister@gmail.com>
Diffstat (limited to 'src/id3v24_tag.c')
-rw-r--r-- | src/id3v24_tag.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/id3v24_tag.c b/src/id3v24_tag.c index 29cbb1f..823a5b6 100644 --- a/src/id3v24_tag.c +++ b/src/id3v24_tag.c @@ -220,6 +220,12 @@ gboolean Id3tag_Read_File_Tag (gchar *filename, File_Tag *FileTag) if ( (frame = id3_tag_findframe(tag, ID3_FRAME_ARTIST, 0)) ) update |= libid3tag_Get_Frame_Str(frame, EASYTAG_ID3_FIELD_STRINGLIST, &FileTag->artist); + /***************** + * Album Artist (TPE2) * + *****************/ + if ( (frame = id3_tag_findframe(tag, "TPE2", 0)) ) + update |= libid3tag_Get_Frame_Str(frame, EASYTAG_ID3_FIELD_STRINGLIST, &FileTag->album_artist); + /**************** * Album (TALB) * ****************/ @@ -871,6 +877,11 @@ gboolean Id3tag_Write_File_v24Tag (ET_File *ETFile) **********/ etag_set_tags(FileTag->artist, ID3_FRAME_ARTIST, ID3_FIELD_TYPE_STRINGLIST, v1tag, v2tag, &strip_tags); + /********** + * Album Artist * + **********/ + etag_set_tags(FileTag->album_artist, "TPE2", ID3_FIELD_TYPE_STRINGLIST, NULL, v2tag, &strip_tags); + /********* * Album * *********/ |