diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-01 22:43:53 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-01 22:43:53 +0100 |
commit | dd318e5865854e1428e3451038a0d2d4de12cdb0 (patch) | |
tree | 27531e0ce6ce48a58756fecbb999543d86858460 /plugins | |
parent | 1cdb930ee092e7ed701dc98a414369493783c881 (diff) |
vorbis: added support for copyright metadata
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/vorbis/vorbis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index 3b73a5f3..1006929f 100644 --- a/plugins/vorbis/vorbis.c +++ b/plugins/vorbis/vorbis.c @@ -98,6 +98,9 @@ update_vorbis_comments (DB_playItem_t *it, vorbis_comment *vc) { else if (!strncasecmp (vc->user_comments[i], "genre=", 6)) { deadbeef->pl_add_meta (it, "genre", vc->user_comments[i] + 6); } + else if (!strncasecmp (vc->user_comments[i], "copyright=", 10)) { + deadbeef->pl_add_meta (it, "copyright", vc->user_comments[i] + 10); + } else if (!strncasecmp (vc->user_comments[i], "replaygain_album_gain=", 22)) { it->replaygain_album_gain = atof (vc->user_comments[i] + 22); } |