* If the client doesn't specify a sort order on a music container, default to type, disc, track, then title.
This commit is contained in:
parent
07c5fd5dd6
commit
ed36693657
@ -1082,6 +1082,14 @@ BrowseContentDirectory(struct upnphttp * h, const char * action)
|
|||||||
else
|
else
|
||||||
asprintf(&orderBy, "order by length(OBJECT_ID), OBJECT_ID");
|
asprintf(&orderBy, "order by length(OBJECT_ID), OBJECT_ID");
|
||||||
}
|
}
|
||||||
|
else if( strncmp(ObjectId, MUSIC_ID, strlen(MUSIC_ID)) == 0 )
|
||||||
|
{
|
||||||
|
#ifdef __sparc__
|
||||||
|
if( totalMatches < 10000 )
|
||||||
|
#endif
|
||||||
|
asprintf(&orderBy, "order by o.CLASS, d.DISC, d.TRACK, d.TITLE");
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* If it's a DLNA client, return an error for bad sort criteria */
|
/* If it's a DLNA client, return an error for bad sort criteria */
|
||||||
if( (args.flags & FLAG_DLNA) && ret )
|
if( (args.flags & FLAG_DLNA) && ret )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user