upnpsoap: Add "path" SortCriteria support

Useful for manual sort overrides, to sort by filename.
This commit is contained in:
Justin Maggard 2020-11-11 17:54:44 -08:00
parent 13efe02e2d
commit 42646c99e0

View File

@ -659,6 +659,10 @@ parse_sort_criteria(char *sortCriteria, int *error)
{ {
strcatf(&str, "d.ALBUM"); strcatf(&str, "d.ALBUM");
} }
else if( strcasecmp(item, "path") == 0 )
{
strcatf(&str, "d.PATH");
}
else else
{ {
DPRINTF(E_ERROR, L_HTTP, "Unhandled SortCriteria [%s]\n", item); DPRINTF(E_ERROR, L_HTTP, "Unhandled SortCriteria [%s]\n", item);