Added marker / scene audio interface option

This commit is contained in:
Stash Dev
2019-04-20 14:48:54 -07:00
parent a67a45ce91
commit ec453c7a14
6 changed files with 40 additions and 19 deletions

View File

@@ -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
}
}