feat(subsonic): add folder-based navigation to getIndexes and getMusicDirectory

This commit is contained in:
Simone Tellini 2026-09-05 12:32:53 +02:00
commit 617b76a8fc
10 changed files with 1328 additions and 23 deletions

View file

@ -39,6 +39,7 @@ type MockMediaFileRepo struct {
MatchesCriteriaValue bool
MatchesCriteriaErr error
BookmarksAdded []string
GetAllFn func(qo ...model.QueryOptions) (model.MediaFiles, error)
}
func (m *MockMediaFileRepo) SetError(err bool) {
@ -104,6 +105,9 @@ func (m *MockMediaFileRepo) GetAll(_ context.Context, qo ...model.QueryOptions)
if len(qo) > 0 {
m.Options = qo[0]
}
if m.GetAllFn != nil {
return m.GetAllFn(qo...)
}
if m.Err {
return nil, errors.New("error")
}