[grilo-plugins] [upnp] Take in care all keys when building UPnP filter



commit df060db4215bb16239e7cc2028e1661a49c5070e
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon May 24 12:26:16 2010 +0200

    [upnp] Take in care all keys when building UPnP filter
    
    So far, just a subset of keys were taken in account when building the upnp
    filter.
    
    Nevertheless, seems that some upnp servers require other keys in the filter to
    be able to get the properties.

 src/upnp/grl-upnp.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/upnp/grl-upnp.c b/src/upnp/grl-upnp.c
index 1aa5e42..3095d7b 100644
--- a/src/upnp/grl-upnp.c
+++ b/src/upnp/grl-upnp.c
@@ -505,8 +505,15 @@ setup_key_mappings (void)
 		       GRLKEYID_TO_POINTER (GRL_METADATA_KEY_DATE),
 		       "modified");
 
-  /* For filter_key_mapping we only have to set mapping for
-     optional keys (the others are included by default) */
+  g_hash_table_insert (filter_key_mapping,
+		       GRLKEYID_TO_POINTER (GRL_METADATA_KEY_TITLE),
+		       "title");
+  g_hash_table_insert (filter_key_mapping,
+		       GRLKEYID_TO_POINTER (GRL_METADATA_KEY_URL),
+		       "res");
+  g_hash_table_insert (filter_key_mapping,
+		       GRLKEYID_TO_POINTER (GRL_METADATA_KEY_DATE),
+		       "modified");
   g_hash_table_insert (filter_key_mapping,
 		       GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ARTIST),
 		       "upnp:artist");



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