Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'upnpsoap.c')
-rw-r--r--upnpsoap.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/upnpsoap.c b/upnpsoap.c
index 7ebb80d..6e095d1 100644
--- a/upnpsoap.c
+++ b/upnpsoap.c
@@ -165,10 +165,11 @@ GetSortCapabilities(struct upnphttp * h, const char * action)
"<u:%sResponse "
"xmlns:u=\"%s\">"
"<SortCaps>"
- "dc:title,"
- "dc:date,"
+ "dc:title,"
+ "dc:date,"
"upnp:class,"
- "upnp:originalTrackNumber"
+ "upnp:album,"
+ "upnp:originalTrackNumber"
"</SortCaps>"
"</u:%sResponse>";
@@ -549,6 +550,10 @@ parse_sort_criteria(char *sortCriteria, int *error)
{
strcat(order, "d.DISC, d.TRACK");
}
+ else if( strcasecmp(item, "upnp:album") == 0 )
+ {
+ strcat(order, "d.ALBUM");
+ }
else
{
printf("Unhandled SortCriteria [%s]\n", item);