Albums page: remember last sort order
This commit is contained in:
@@ -2,6 +2,15 @@ package sharedutil
|
||||
|
||||
import "github.com/dweymouth/go-subsonic/subsonic"
|
||||
|
||||
func StringSliceContains(slice []string, str string) bool {
|
||||
for _, s := range slice {
|
||||
if s == str {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func FindTrackByID(id string, tracks []*subsonic.Child) *subsonic.Child {
|
||||
for _, tr := range tracks {
|
||||
if id == tr.ID {
|
||||
|
||||
Reference in New Issue
Block a user