mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Added marker / scene audio interface option
This commit is contained in:
@@ -73,7 +73,13 @@ func getSort(sort string, direction string, tableName string) string {
|
||||
return " ORDER BY RANDOM() "
|
||||
} else {
|
||||
colName := getColumn(tableName, sort)
|
||||
return " ORDER BY " + colName + " " + direction
|
||||
var additional string
|
||||
if tableName == "scenes" {
|
||||
additional = ", bitrate DESC, framerate DESC, rating DESC, duration DESC"
|
||||
} else if tableName == "scene_markers" {
|
||||
additional = ", scene_id ASC, seconds ASC"
|
||||
}
|
||||
return " ORDER BY " + colName + " " + direction + additional
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user