add "-full-scan" scan option to gonic scan

closes #20
This commit is contained in:
sentriz
2020-04-24 01:42:26 +01:00
parent 5bd57c42d5
commit b95f98ffcf
8 changed files with 695 additions and 684 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.Start(); err != nil {
if err := c.Scanner.StartInc(); err != nil {
log.Printf("error while scanning: %v\n", err)
}
}()