From 9c396d7ef09a86091f76ca4ef9ae0fe8b84f2a8a Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 24 Jul 2024 17:25:03 +0200 Subject: [PATCH] Fix removal of XiphComments --- src/tags.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tags.cpp b/src/tags.cpp index 6395807a..96704642 100644 --- a/src/tags.cpp +++ b/src/tags.cpp @@ -174,6 +174,7 @@ void writeID3v2Tags(const MPD::MutableSong &s, TagLib::ID3v2::Tag *tag) void writeXiphComments(const MPD::MutableSong &s, TagLib::Ogg::XiphComment *tag) { auto writeXiph = [&](const TagLib::String &type, const TagLib::StringList &list) { + tag->removeFields(type); for (auto it = list.begin(); it != list.end(); ++it) tag->addField(type, *it, it == list.begin()); };