tags: remove xiph tag DESCRIPTION as it's parsed as COMMENT by MPD

This commit is contained in:
Andrzej Rybczak
2015-05-18 00:05:49 +02:00
parent 4d4b7c542f
commit d54de65990
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@@ -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)

View File

@@ -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));