[tracker] Make MP3 extractor include nmm:albumArtist info



commit 04d5bdf8f7f5c7361f4fd7f8427010fe93b74f2d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Feb 14 17:13:12 2011 +0100

    Make MP3 extractor include nmm:albumArtist info
    
    This property wasn't being set in nmm:MusicAlbum classes.
    Fixes GB#641906 - albumArtist information is not provided.

 src/tracker-extract/tracker-extract-mp3.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index 4577a3b..29d9c5f 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -2267,6 +2267,11 @@ extract_mp3 (const gchar          *uri,
 		tracker_sparql_builder_predicate (preupdate, "nmm:albumTitle");
 		tracker_sparql_builder_object_unvalidated (preupdate, md.album);
 
+		if (md.performer_uri) {
+			tracker_sparql_builder_predicate (preupdate, "nmm:albumArtist");
+			tracker_sparql_builder_object_iri (preupdate, md.performer_uri);
+		}
+
 		tracker_sparql_builder_insert_close (preupdate);
 
 		if (md.track_count > 0) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]