diff --git a/repositories/media_folders_repository.go b/repositories/media_folders_repository.go index db204ca85..67e2f5a13 100644 --- a/repositories/media_folders_repository.go +++ b/repositories/media_folders_repository.go @@ -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 diff --git a/tests/controllers/get_music_folders_test.go b/tests/controllers/get_music_folders_test.go index edc3a4f42..630d7248d 100644 --- a/tests/controllers/get_music_folders_test.go +++ b/tests/controllers/get_music_folders_test.go @@ -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"`) }) }) }