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:
authorJustin Maggard <jmaggard@users.sourceforce.net>2012-01-09 12:03:15 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2012-01-09 12:03:15 +0400
commit3e0e7368c4bc56799f40f2a75f5bacbe9a1ceb9e (patch)
tree59ef1ac73dbbfd5bfd2863644f7191762f779e7c /upnpsoap.c
parent988a5ab911efddae32d54d87c6043129ba663ecd (diff)
* Add workarounds for LifeTab tablets' bad behavior.
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);