Albums page: remember last sort order

This commit is contained in:
Drew Weymouth
2023-03-02 20:49:00 -08:00
parent 595d9116f0
commit 37928881c0
6 changed files with 38 additions and 19 deletions
+9
View File
@@ -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 {