[sound-juicer/musicbrainz4] extractor: write album artist tags
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer/musicbrainz4] extractor: write album artist tags
- Date: Mon, 14 Nov 2011 13:52:39 +0000 (UTC)
commit b7b8a95eff31002e54c880dd1e356a42bab4156d
Author: Ross Burton <ross linux intel com>
Date: Mon Nov 14 13:44:18 2011 +0000
extractor: write album artist tags
libjuicer/sj-extractor.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libjuicer/sj-extractor.c b/libjuicer/sj-extractor.c
index 10523d4..320b4c9 100644
--- a/libjuicer/sj-extractor.c
+++ b/libjuicer/sj-extractor.c
@@ -534,6 +534,18 @@ sj_extractor_extract_track (SjExtractor *extractor, const TrackDetails *track, G
GST_TAG_MUSICBRAINZ_ALBUMARTISTID, track->album->artist_id,
NULL);
}
+ if (track->album->artist != NULL && strcmp (track->album->artist, "") != 0) {
+ gst_tag_setter_add_tags (tagger,
+ GST_TAG_MERGE_APPEND,
+ GST_TAG_ALBUM_ARTIST, track->album->artist,
+ NULL);
+ }
+ if (track->album->artist_sortname != NULL && strcmp (track->album->artist_sortname, "") != 0) {
+ gst_tag_setter_add_tags (tagger,
+ GST_TAG_MERGE_APPEND,
+ GST_TAG_ALBUM_ARTIST_SORTNAME, track->album->artist_sortname,
+ NULL);
+ }
if (track->artist_id != NULL && strcmp (track->artist_id, "") != 0) {
gst_tag_setter_add_tags (tagger,
GST_TAG_MERGE_APPEND,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]