upnpsoap: Add forced alphasort capability

Add the ability to force title modification for clients that do their own
alphanumeric sorting.  Adding a '!' to the beginning of the
force_sort_criteria value will enable this behavior.

It is implemented by prepending all titles with a zero-padded number, and
possibly season and episode (or disc and track) numbers if they aren't
already in the title.
This commit is contained in:
Justin Maggard
2018-01-11 11:06:26 -08:00
parent c0e66e9997
commit 3e9ca13fa3
5 changed files with 48 additions and 4 deletions

View File

@ -196,6 +196,7 @@ extern uint32_t runtime_flags;
#define SCANNING_MASK 0x0100
#define RESCAN_MASK 0x0200
#define SUBTITLES_MASK 0x0400
#define FORCE_ALPHASORT_MASK 0x0800
#define SETFLAG(mask) runtime_flags |= mask
#define GETFLAG(mask) (runtime_flags & mask)