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");
}
else if( strcasecmp(item, "path") == 0 )
{
strcatf(&str, "d.PATH");
}
else
{
DPRINTF(E_ERROR, L_HTTP, "Unhandled SortCriteria [%s]\n", item);