scanner: add scanoptions struct

This commit is contained in:
sentriz
2020-05-01 02:12:17 +01:00
parent 08e775c9dd
commit 24212af42e
5 changed files with 24 additions and 32 deletions

View File

@@ -86,7 +86,7 @@ func (c *Controller) ServeGetMusicFolders(r *http.Request) *spec.Response {
func (c *Controller) ServeStartScan(r *http.Request) *spec.Response {
go func() {
if err := c.Scanner.StartInc(); err != nil {
if err := c.Scanner.Start(scanner.ScanOptions{}); err != nil {
log.Printf("error while scanning: %v\n", err)
}
}()