From 42646c99e076fffa1955904d899f69c9f14cb4cb Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Wed, 11 Nov 2020 17:54:44 -0800 Subject: [PATCH] upnpsoap: Add "path" SortCriteria support Useful for manual sort overrides, to sort by filename. --- upnpsoap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upnpsoap.c b/upnpsoap.c index 744a01b..daffb4d 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -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);