[grilo-plugins] tracker: Add album disc number mapping
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tracker: Add album disc number mapping
- Date: Sat, 14 May 2016 00:41:15 +0000 (UTC)
commit 0b7fece1e9ce8aa5c7f33ff3de30d031e2300b2a
Author: Marinus Schraal <mschraal scr gnome org>
Date: Fri May 13 18:33:38 2016 +0200
tracker: Add album disc number mapping
Map nmm:musicAlbumDisc to GRL_METADATA_KEY_ALBUM_DISC_NUMBER.
And require the current development version of grilo as well.
https://bugzilla.gnome.org/show_bug.cgi?id=761869
configure.ac | 2 +-
src/tracker/grl-tracker-utils.c | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 113aa9c..32ec398 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,7 +93,7 @@ fi
PKG_CHECK_MODULES([DEPS], glib-2.0 >= 2.44 \
gobject-2.0 \
gmodule-2.0 \
- ${GRL_NAME} >= 0.3.0)
+ ${GRL_NAME} >= 0.3.1)
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)
diff --git a/src/tracker/grl-tracker-utils.c b/src/tracker/grl-tracker-utils.c
index fd3e438..a6c3216 100644
--- a/src/tracker/grl-tracker-utils.c
+++ b/src/tracker/grl-tracker-utils.c
@@ -204,6 +204,11 @@ grl_tracker_setup_key_mappings (void)
"nmm:albumTitle(nmm:musicAlbum(?urn))",
"audio");
+ insert_key_mapping (GRL_METADATA_KEY_ALBUM_DISC_NUMBER,
+ NULL,
+ "nmm:setNumber(nmm:musicAlbumDisc(?urn))",
+ "audio");
+
insert_key_mapping (GRL_METADATA_KEY_ARTIST,
NULL,
"nmm:artistName(nmm:performer(?urn))",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]