Support @parentID in SearchCriteria.

This commit is contained in:
Justin Maggard 2014-01-31 13:18:36 -08:00
parent dda5b1c19d
commit f119cfe1a6

View File

@ -214,6 +214,8 @@ GetSearchCapabilities(struct upnphttp * h, const char * action)
"upnp:artist," "upnp:artist,"
"upnp:class," "upnp:class,"
"upnp:genre," "upnp:genre,"
"@id,"
"@parentID,"
"@refID" "@refID"
"</SearchCaps>" "</SearchCaps>"
"</u:%sResponse>"; "</u:%sResponse>";
@ -1418,6 +1420,12 @@ parse_search_criteria(const char *str)
s += 3; s += 3;
continue; continue;
} }
else if (strncmp(s, "@parentID", 9) == 0)
{
strcatf(&criteria, "PARENT_ID");
s += 9;
continue;
}
else else
charcat(&criteria, *s); charcat(&criteria, *s);
break; break;