Implements the database

This commit is contained in:
2016-01-21 20:24:36 +01:00
parent 40e1e55215
commit 4a18666fe2
5 changed files with 109 additions and 21 deletions

View File

@@ -54,7 +54,7 @@ func indexAlbums(i bleve.Index, albums chan *Album, errors chan error) {
iAlbum := 0
start := time.Now()
for a := range albums {
err := i.Index(a.IDString(), a)
err := i.Index(AlbumIDString(a.ID), a)
if err != nil {
errors <- err
}