[grilo-plugins/wip/jfelder/tracker3-empty-values: 4/4] tracker3: Fix writeback support for musicbrainz artist key
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/jfelder/tracker3-empty-values: 4/4] tracker3: Fix writeback support for musicbrainz artist key
- Date: Fri, 6 Aug 2021 15:48:53 +0000 (UTC)
commit c0ab6185cc3c19b574428e6bf4d6d241bd3ce295
Author: Jean Felder <jfelder src gnome org>
Date: Fri Aug 6 16:15:29 2021 +0200
tracker3: Fix writeback support for musicbrainz artist key
This tags is associated with an artist property (nmm:artist) of a
song, not the song.
src/tracker3/grl-tracker-utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker3/grl-tracker-utils.c b/src/tracker3/grl-tracker-utils.c
index 23e6f24c..c3f0584d 100644
--- a/src/tracker3/grl-tracker-utils.c
+++ b/src/tracker3/grl-tracker-utils.c
@@ -661,7 +661,7 @@ grl_tracker_build_resource_from_media (GrlMedia *media, GList *keys)
tracker_resource_set_string (hash, "nfo:hashValue",
grl_data_get_string (GRL_DATA (media), grl_metadata_key_chromaprint));
} else if (l->data == GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ARTIST)) {
- TrackerResource *artist;
+ TrackerResource *artist = NULL;
const gchar *artist_name;
gint i = 0;
@@ -679,7 +679,7 @@ grl_tracker_build_resource_from_media (GrlMedia *media, GList *keys)
mb_artist_id = grl_media_get_mb_artist_id_nth (media, i);
if (mb_artist_id) {
- ensure_resource_for_musicbrainz_tag (resource,
+ ensure_resource_for_musicbrainz_tag (artist,
"https://musicbrainz.org/doc/Artist",
mb_artist_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]