[grilo-plugins] upnp: filter containers from search
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] upnp: filter containers from search
- Date: Wed, 28 Sep 2011 14:04:13 +0000 (UTC)
commit 094154f32eb99545435a4a14d295bc02bebe5676
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Wed Sep 28 13:59:48 2011 +0000
upnp: filter containers from search
This fixes https://bugzilla.gnome.org/show_bug.cgi?id=653759
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/media/upnp/grl-upnp.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/media/upnp/grl-upnp.c b/src/media/upnp/grl-upnp.c
index ba9f638..7aa9b9a 100644
--- a/src/media/upnp/grl-upnp.c
+++ b/src/media/upnp/grl-upnp.c
@@ -57,10 +57,11 @@ GRL_LOG_DOMAIN_STATIC(upnp_log_domain);
#define CONTENT_DIR_SERVICE "urn:schemas-upnp-org:service:ContentDirectory"
#endif
-#define UPNP_SEARCH_SPEC \
- "dc:title contains \"%s\" or " \
- "upnp:album contains \"%s\" or " \
- "upnp:artist contains \"%s\""
+#define UPNP_SEARCH_SPEC \
+ "upnp:class derivedfrom \"object.item\" and " \
+ "(dc:title contains \"%s\" or " \
+ "upnp:album contains \"%s\" or " \
+ "upnp:artist contains \"%s\")"
#define UPNP_SEARCH_ALL \
"upnp:class derivedfrom \"object.item\""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]