* Add workarounds for LifeTab tablets' bad behavior.

This commit is contained in:
Justin Maggard
2012-01-09 08:03:15 +00:00
parent 0919e28b3a
commit 889a531ecd
4 changed files with 22 additions and 3 deletions

View File

@ -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);