summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-05-24 16:37:25 +0200
committerCarlos Garnacho <carlosg@gnome.org>2020-08-22 15:37:35 +0200
commit2691ca48b59635c20f9f940a0e1e611caf386e7d (patch)
tree7bb1cf3b32c6d28506e1ec0546d89ae86a2eb674
parent99fe355c313f3a93746622bc4c0443857ce5cc45 (diff)
downloadgrilo-plugins-2691ca48b59635c20f9f940a0e1e611caf386e7d.tar.gz
tracker3: Associate the SPARQL variable name to the grilo key
We now look up variable names here, so update this. Also drop the other (no longer necessary) mappings.
-rw-r--r--src/tracker3/grl-tracker-utils.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/tracker3/grl-tracker-utils.c b/src/tracker3/grl-tracker-utils.c
index 4550a21..e8a6bfc 100644
--- a/src/tracker3/grl-tracker-utils.c
+++ b/src/tracker3/grl-tracker-utils.c
@@ -173,21 +173,8 @@ insert_key_mapping (GrlKeyID grl_key,
GRLKEYID_TO_POINTER (grl_key),
assoc_list);
g_hash_table_insert (sparql_to_grl_mapping,
- (gpointer) assoc->sparql_key_name,
+ (gpointer) assoc->sparql_var_name,
assoc);
- g_hash_table_insert (sparql_to_grl_mapping,
- (gpointer) GRL_METADATA_KEY_GET_NAME (grl_key),
- assoc);
-
- /* Grilo maps key names to SPARQL variables. Key names can contain dashes,
- * however SPARQL does not allow dashes in variable names. So use the to
- * underscores converted canon_name as additional mapping.
- */
- if (g_strrstr (assoc->sparql_key_name_canon, "_")) {
- g_hash_table_insert (sparql_to_grl_mapping,
- (gpointer) assoc->sparql_key_name_canon,
- assoc);
- }
g_free (canon_name);