mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-17 07:38:46 +01:00
feat(subsonic): add folder-based navigation to getIndexes and getMusicDirectory
This commit is contained in:
parent
95f67d2c4e
commit
617b76a8fc
10 changed files with 1328 additions and 23 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue