* Add workarounds for LifeTab tablets' bad behavior.
This commit is contained in:
11
upnpsoap.c
11
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);
|
||||
|
Reference in New Issue
Block a user