[PATCH 1/2] tracker: add support for season/episode keys



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 src/media/tracker/grl-tracker-utils.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/media/tracker/grl-tracker-utils.c b/src/media/tracker/grl-tracker-utils.c
index 2e6a1d9..8a3f634 100644
--- a/src/media/tracker/grl-tracker-utils.c
+++ b/src/media/tracker/grl-tracker-utils.c
@@ -214,6 +214,14 @@ grl_tracker_setup_key_mappings (void)
                                   "nfo:orientation(?urn)",
                                   "image",
                                   set_orientation);
+
+  insert_key_mapping (GRL_METADATA_KEY_SEASON,
+                      "nmm:season(?urn)",
+                      "video");
+
+  insert_key_mapping (GRL_METADATA_KEY_EPISODE,
+                      "nmm:episodeNumber(?urn)",
+                      "video");
 }
 
 tracker_grl_sparql_t *
-- 
1.7.4.1



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