fix(scanner): improve M3U playlist import times (#2706)

This commit is contained in:
Deluan
2024-09-18 19:18:07 -04:00
parent ee2e04b832
commit 46be041e7b
9 changed files with 167 additions and 51 deletions
+9
View File
@@ -77,6 +77,15 @@ func (r *mockedMediaFile) FindByPath(s string) (*model.MediaFile, error) {
}, nil
}
func (r *mockedMediaFile) FindByPaths(paths []string) (model.MediaFiles, error) {
var mfs model.MediaFiles
for _, path := range paths {
mf, _ := r.FindByPath(path)
mfs = append(mfs, *mf)
}
return mfs, nil
}
type mockedPlaylist struct {
model.PlaylistRepository
}