From 382e4c0177d8b7ba72df5ac8a57b0114609e790c Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 13 Sep 2012 15:55:11 +0200 Subject: [PATCH] tag editor: remove field previously used as album artist --- src/tag_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index 033a5ca5..4e401cba 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -1262,6 +1262,8 @@ void writeXiphComments(const MPD::MutableSong &s, TagLib::Ogg::XiphComment *tag) for (auto it = list.begin(); it != list.end(); ++it) tag->addField(type, *it, false); }; + // remove field previously used as album artist + tag->removeField("ALBUM ARTIST"); writeXiph("TITLE", tagList(s, &MPD::Song::getTitle)); writeXiph("ARTIST", tagList(s, &MPD::Song::getArtist)); writeXiph("ALBUMARTIST", tagList(s, &MPD::Song::getAlbumArtist));