refactor: consolidate specid <-> filesystem mapping and always use abs paths (#309)
This commit is contained in:
@@ -19,7 +19,6 @@ import (
|
||||
"go.senan.xyz/gonic"
|
||||
"go.senan.xyz/gonic/db"
|
||||
"go.senan.xyz/gonic/mockfs"
|
||||
"go.senan.xyz/gonic/paths"
|
||||
"go.senan.xyz/gonic/server/ctrlbase"
|
||||
"go.senan.xyz/gonic/server/ctrlsubsonic/params"
|
||||
"go.senan.xyz/gonic/transcode"
|
||||
@@ -159,9 +158,9 @@ func makec(t *testing.T, roots []string, audio bool) *Controller {
|
||||
m.ScanAndClean()
|
||||
m.ResetDates()
|
||||
|
||||
var absRoots paths.MusicPaths
|
||||
var absRoots []MusicPath
|
||||
for _, root := range roots {
|
||||
absRoots = append(absRoots, paths.MusicPath{Alias: "", Path: filepath.Join(m.TmpDir(), root)})
|
||||
absRoots = append(absRoots, MusicPath{Path: filepath.Join(m.TmpDir(), root)})
|
||||
}
|
||||
|
||||
base := &ctrlbase.Controller{DB: m.DB()}
|
||||
|
||||
Reference in New Issue
Block a user