mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Adds ability to configure sort order for DLNA videos (#3645)
This commit is contained in:
@@ -210,6 +210,9 @@ const (
|
||||
DLNADefaultIPWhitelist = "dlna.default_whitelist"
|
||||
DLNAInterfaces = "dlna.interfaces"
|
||||
|
||||
DLNAVideoSortOrder = "dlna.video_sort_order"
|
||||
dlnaVideoSortOrderDefault = "title"
|
||||
|
||||
// Logging options
|
||||
LogFile = "logFile"
|
||||
LogOut = "logOut"
|
||||
@@ -1370,6 +1373,17 @@ func (i *Instance) GetDLNAInterfaces() []string {
|
||||
return i.getStringSlice(DLNAInterfaces)
|
||||
}
|
||||
|
||||
// GetVideoSortOrder returns the sort order to display videos. If
|
||||
// empty, videos will be sorted by titles.
|
||||
func (i *Instance) GetVideoSortOrder() string {
|
||||
ret := i.getString(DLNAVideoSortOrder)
|
||||
if ret == "" {
|
||||
ret = dlnaVideoSortOrderDefault
|
||||
}
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetLogFile returns the filename of the file to output logs to.
|
||||
// An empty string means that file logging will be disabled.
|
||||
func (i *Instance) GetLogFile() string {
|
||||
|
||||
Reference in New Issue
Block a user