From 5e5aacfc7174aba9adfbd32238a5756b717e3490 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 23 Apr 2011 16:17:21 +0100 Subject: 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 --- src/id3v24_tag.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/id3v24_tag.c') 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 * *********/ -- cgit v1.2.3