From d54de65990dbe852762e5292c5b27186d16fcc02 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 18 May 2015 00:05:49 +0200 Subject: [PATCH] tags: remove xiph tag DESCRIPTION as it's parsed as COMMENT by MPD --- NEWS | 1 + src/tags.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index ee8800e3..1e7a8389 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ ncmpcpp-0.6.5 (????-??-??) * Configure script now fails if either readline or pthread specific headers are not present. * Searching in text fields now respects regular expression configuration. * When numbering tracks in tag editor all the other track tags are discarded. +* Xiph tag DESCRIPTION is now rewritten as COMMENT when updating tags. ncmpcpp-0.6.4 (2015-05-02) diff --git a/src/tags.cpp b/src/tags.cpp index 832351e4..ff11ab17 100644 --- a/src/tags.cpp +++ b/src/tags.cpp @@ -184,6 +184,8 @@ void writeXiphComments(const MPD::MutableSong &s, TagLib::Ogg::XiphComment *tag) tag->removeField("TRACK"); // remove field DISC, some taggers use it as DISCNUMBER tag->removeField("DISC"); + // remove field DESCRIPTION, it's displayed as COMMENT + tag->removeField("DESCRIPTION"); writeXiph("TITLE", tagList(s, &MPD::Song::getTitle)); writeXiph("ARTIST", tagList(s, &MPD::Song::getArtist)); writeXiph("ALBUMARTIST", tagList(s, &MPD::Song::getAlbumArtist));