diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-19 22:24:22 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-19 22:24:22 +0100 |
commit | f6da71a54c34231f47fa6edfea153bbf29ad0e87 (patch) | |
tree | a62069c93c24374ec0c7469f495014fca7d9a900 /plugins/wma | |
parent | cf0896a54ace9df526945665629bc1d3cd20dada (diff) |
wma: "MusicBrainz/Track Id" mapping
Diffstat (limited to 'plugins/wma')
-rw-r--r-- | plugins/wma/asfheader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/wma/asfheader.c b/plugins/wma/asfheader.c index db662103..9e12f12f 100644 --- a/plugins/wma/asfheader.c +++ b/plugins/wma/asfheader.c @@ -751,6 +751,9 @@ static int asf_parse_header(DB_FILE *fd, asf_waveformatex_t* wfx, DB_playItem_t if (type == 0) { // FIXME: custom fields -- after others work unsigned char *s = id3buf; asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); + if (!strcmp (utf8buf, "MusicBrainz/Track Id")) { + strcpy (utf8buf, "musicbrainz_trackid"); + } deadbeef->pl_append_meta (it, utf8buf, s); } else { |