diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-12-24 10:30:19 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-12-24 10:30:19 +0100 |
commit | e8afdfeae46dcdb78db674aaf9d84619a5ab5d4d (patch) | |
tree | 16bf5e8ee7a78a5c068e124ae267169c51b771c0 /src | |
parent | 670293655a3d9d4649bf3df9e6c53dd523b297ef (diff) |
tags: remove xiph comment TRACK while writing tags
some taggers use it instead of TRACKNUMBER.
Diffstat (limited to 'src')
-rw-r--r-- | src/tags.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tags.cpp b/src/tags.cpp index 8cc91ff1..cf50f2b0 100644 --- a/src/tags.cpp +++ b/src/tags.cpp @@ -170,6 +170,8 @@ void writeXiphComments(const MPD::MutableSong &s, TagLib::Ogg::XiphComment *tag) }; // remove field previously used as album artist tag->removeField("ALBUM ARTIST"); + // remove field TRACK, some taggers use it as TRACKNUMBER + tag->removeField("TRACK"); writeXiph("TITLE", tagList(s, &MPD::Song::getTitle)); writeXiph("ARTIST", tagList(s, &MPD::Song::getArtist)); writeXiph("ALBUMARTIST", tagList(s, &MPD::Song::getAlbumArtist)); |