taglist: Add support for ALBUM_ARTIST tag
authorJohn Millikin <jmillikin@gmail.com>
Tue, 4 Aug 2009 12:13:34 +0000 (14:13 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 6 Aug 2009 04:41:58 +0000 (06:41 +0200)
The "album artist" tag is used when the artist of an entire
album differs from the artist of an individual track; for example,
when a "guest artist" appears on an album, or on compilations.

Fixes bug #590430.

gst/gsttaglist.c
gst/gsttaglist.h

index af00ea4..21824b2 100644 (file)
@@ -116,6 +116,15 @@ _gst_tag_initialize (void)
       G_TYPE_STRING,
       _("album sortname"),
       _("album containing this data for sorting purposes"), NULL);
+  gst_tag_register (GST_TAG_ALBUM_ARTIST, GST_TAG_FLAG_META,
+      G_TYPE_STRING,
+      _("album artist"),
+      _("The artist of the entire album, as it should be displayed"),
+      gst_tag_merge_strings_with_comma);
+  gst_tag_register (GST_TAG_ALBUM_ARTIST_SORTNAME, GST_TAG_FLAG_META,
+      G_TYPE_STRING,
+      _("album artist sortname"),
+      _("The artist of the entire album, as it should be sorted"), NULL);
   gst_tag_register (GST_TAG_DATE, GST_TAG_FLAG_META, GST_TYPE_DATE,
       _("date"), _("date the data was created (as a GDate structure)"), NULL);
   gst_tag_register (GST_TAG_GENRE, GST_TAG_FLAG_META,
index 7157cdf..6d5d57e 100644 (file)
@@ -413,6 +413,22 @@ gboolean     gst_tag_list_get_buffer_index  (const GstTagList * list,
  */
 #define GST_TAG_ALBUM_SORTNAME         "album-sortname"
 /**
+ * GST_TAG_ALBUM_ARTIST
+ *
+ * The artist of the entire album, as it should be displayed.
+ *
+ * Since: 0.10.25
+ */
+#define GST_TAG_ALBUM_ARTIST           "album-artist"
+/**
+ * GST_TAG_ALBUM_ARTIST_SORTNAME
+ *
+ * The artist of the entire album, as it should be sorted.
+ *
+ * Since: 0.10.25
+ */
+#define GST_TAG_ALBUM_ARTIST_SORTNAME  "album-artist-sortname"
+/**
  * GST_TAG_COMPOSER:
  *
  * person(s) who composed the recording (string)