[grilo] metadata-keys: add season/episode/show keys



commit 919f14b83318e88d91940551491625eccbdbdda7
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Mon Mar 14 11:31:35 2011 +0000

    metadata-keys: add season/episode/show keys
    
    Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>

 src/grl-metadata-key.c |   33 +++++++++++++++++++++++++++++++++
 src/grl-metadata-key.h |    3 +++
 2 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/src/grl-metadata-key.c b/src/grl-metadata-key.c
index 365b9b6..f2658a6 100644
--- a/src/grl-metadata-key.c
+++ b/src/grl-metadata-key.c
@@ -61,6 +61,10 @@ GrlKeyID GRL_METADATA_KEY_STUDIO = NULL;
 GrlKeyID GRL_METADATA_KEY_CERTIFICATE = NULL;
 GrlKeyID GRL_METADATA_KEY_LICENSE = NULL;
 
+GrlKeyID GRL_METADATA_KEY_SEASON = NULL;
+GrlKeyID GRL_METADATA_KEY_EPISODE = NULL;
+GrlKeyID GRL_METADATA_KEY_SHOW = NULL;
+
 void
 grl_metadata_key_setup_system_keys (GrlPluginRegistry *registry)
 {
@@ -323,6 +327,35 @@ GRL_METADATA_KEY_STUDIO =
                                                                    G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
                                                NULL);
 
+  GRL_METADATA_KEY_SEASON =
+    grl_plugin_registry_register_metadata_key (registry,
+                                               g_param_spec_int ("season",
+                                                                 "Season",
+                                                                 "Season of a show",
+                                                                 0, G_MAXINT,
+                                                                 0,
+                                                                 G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
+                                               NULL);
+
+  GRL_METADATA_KEY_EPISODE =
+    grl_plugin_registry_register_metadata_key (registry,
+                                               g_param_spec_int ("episode",
+                                                                 "Episode",
+                                                                 "Episode of a show",
+                                                                 0, G_MAXINT,
+                                                                 0,
+                                                                 G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
+                                               NULL);
+
+  GRL_METADATA_KEY_SHOW =
+    grl_plugin_registry_register_metadata_key (registry,
+                                               g_param_spec_string ("show",
+                                                                    "Show",
+                                                                    "Name of a show",
+                                                                    NULL,
+                                                                    G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
+                                               NULL);
+
   /* Create the relations */
   grl_plugin_registry_register_metadata_key_relation (registry,
                                                       GRL_METADATA_KEY_URL,
diff --git a/src/grl-metadata-key.h b/src/grl-metadata-key.h
index f4f1c11..652d87f 100644
--- a/src/grl-metadata-key.h
+++ b/src/grl-metadata-key.h
@@ -73,6 +73,9 @@ extern GrlKeyID GRL_METADATA_KEY_THUMBNAIL_BINARY;
 extern GrlKeyID GRL_METADATA_KEY_TITLE;
 extern GrlKeyID GRL_METADATA_KEY_URL;
 extern GrlKeyID GRL_METADATA_KEY_WIDTH;
+extern GrlKeyID GRL_METADATA_KEY_SEASON;
+extern GrlKeyID GRL_METADATA_KEY_EPISODE;
+extern GrlKeyID GRL_METADATA_KEY_SHOW;
 
 const gchar *grl_metadata_key_get_name (GrlKeyID key);
 



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