From f119cfe1a69348af85905375fed27daa487929df Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Fri, 31 Jan 2014 13:18:36 -0800 Subject: [PATCH] Support @parentID in SearchCriteria. --- upnpsoap.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/upnpsoap.c b/upnpsoap.c index 3fee379..81bb823 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -214,6 +214,8 @@ GetSearchCapabilities(struct upnphttp * h, const char * action) "upnp:artist," "upnp:class," "upnp:genre," + "@id," + "@parentID," "@refID" "" ""; @@ -1418,6 +1420,12 @@ parse_search_criteria(const char *str) s += 3; continue; } + else if (strncmp(s, "@parentID", 9) == 0) + { + strcatf(&criteria, "PARENT_ID"); + s += 9; + continue; + } else charcat(&criteria, *s); break;