[tracker-miners/wip/jfelder/fix-musicbrainz-writeback] tracker-writeback: Use nmm:artist property to handle artist tags




commit 645f178ac98761a242cbec24de5a4198f232a861
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Aug 6 18:35:31 2021 +0200

    tracker-writeback: Use nmm:artist property to handle artist tags
    
    This nmm:artist was introduced in nmm:MusicPiece to distinguish the
    track artist (nmm:artist) from the performer (nmm:performer).
    nmm:artist property is now used to store all the artist information.
    
    See tracker commit eb9022c15514177d9561ff9f86e061e193f452da

 src/tracker-writeback/tracker-writeback-gstreamer.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-gstreamer.c 
b/src/tracker-writeback/tracker-writeback-gstreamer.c
index 1ef9f19d0..a58fa60ad 100644
--- a/src/tracker-writeback/tracker-writeback-gstreamer.c
+++ b/src/tracker-writeback/tracker-writeback-gstreamer.c
@@ -700,21 +700,21 @@ writeback_gstreamer_write_file_metadata (TrackerWritebackFile  *writeback,
                        g_value_unset (&val);
                }
 
-               if (g_strcmp0 (prop, "nmm:performer") == 0) {
-                       TrackerResource *performer;
+               if (g_strcmp0 (prop, "nmm:artist") == 0) {
+                       TrackerResource *artist;
                        const gchar *name = NULL;
                        const gchar *mb_tags[] = {
                                "https://musicbrainz.org/doc/Artist";,
                                NULL,
                        };
 
-                       performer = tracker_resource_get_first_relation (resource, prop);
+                       artist = tracker_resource_get_first_relation (resource, prop);
 
-                       if (performer) {
-                               name = tracker_resource_get_first_string (performer,
+                       if (artist) {
+                               name = tracker_resource_get_first_string (artist,
                                                                          "nmm:artistName");
 
-                               handle_musicbrainz_tags (performer,
+                               handle_musicbrainz_tags (artist,
                                                         "tracker:hasExternalReference",
                                                         element, mb_tags);
                        }


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