Skip to content

Commit

Permalink
Correctly read library on startup when MPD library version is zero
Browse files Browse the repository at this point in the history
Fixes #139
  • Loading branch information
kimtore committed May 5, 2024
1 parent 628d497 commit 0cbbf0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion songlist/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"strings"
"time"

"github.com/blevesearch/bleve/v2"

"github.com/ambientsound/pms/console"
"github.com/ambientsound/pms/index"
"github.com/blevesearch/bleve/v2"
)

// Library is a Songlist which represents the MPD song library.
Expand All @@ -21,6 +22,7 @@ type Library struct {
func NewLibrary() (s *Library) {
s = &Library{
shutdownReIndex: make(chan int, 1),
version: -1,
}
s.clear()
return
Expand Down

0 comments on commit 0cbbf0d

Please sign in to comment.