From 4aafa5e4ed78ce740bafd5f441870b3551df5e8d Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 17 Dec 2009 18:55:44 +0000 Subject: [PATCH] * Handle "res exists" search criteria. --- upnpsoap.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/upnpsoap.c b/upnpsoap.c index 261ce32..2df2625 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -1136,6 +1136,14 @@ SearchContentDirectory(struct upnphttp * h, const char * action) newSearchCriteria = modifyString(strdup(SearchCriteria), "@id", "OBJECT_ID", 0); SearchCriteria = newSearchCriteria; } + if( strstr(SearchCriteria, "res is ") ) + { + if( newSearchCriteria ) + newSearchCriteria = modifyString(newSearchCriteria, "res is ", "MIME is ", 0); + else + newSearchCriteria = modifyString(strdup(SearchCriteria), "res is ", "MIME is ", 0); + SearchCriteria = newSearchCriteria; + } #if 0 // Does 360 need this? if( strstr(SearchCriteria, "&") ) {