mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 12:37:37 +03:00
Default mediaFolder should have Id = 0
This commit is contained in:
parent
33c6535da9
commit
93f115d8e4
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
type MediaFolderRepository struct {}
|
||||
|
||||
func (*MediaFolderRepository) GetAll() ([]*models.MediaFolder, error) {
|
||||
mediaFolder := models.MediaFolder{Id: "1", Name: "iTunes Library", Path: beego.AppConfig.String("musicFolder")}
|
||||
mediaFolder := models.MediaFolder{Id: "0", Name: "iTunes Library", Path: beego.AppConfig.String("musicFolder")}
|
||||
result := make([]*models.MediaFolder, 1)
|
||||
result[0] = &mediaFolder
|
||||
return result, nil
|
||||
|
|
|
@ -20,7 +20,7 @@ func TestGetMusicFolders(t *testing.T) {
|
|||
v := new(string)
|
||||
err := xml.Unmarshal(w.Body.Bytes(), &v)
|
||||
So(err, ShouldBeNil)
|
||||
So(w.Body.String(), ShouldContainSubstring, `musicFolder id="1" name="iTunes Library"`)
|
||||
So(w.Body.String(), ShouldContainSubstring, `musicFolder id="0" name="iTunes Library"`)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue