fixup! Implements GET for images

This commit is contained in:
2016-01-25 16:13:23 +01:00
parent 6ecaabf955
commit ab1e7c7e91

View File

@@ -221,6 +221,7 @@ func (a *appData) cacheAlbumDescription(getAlbum <-chan *Album, toIndex chan<- *
albumCache, err := a.db.Get(album.ID)
if err == nil {
a.cover.RegisterCover(albumCache.ID, albumCache.CoverURL)
toIndex <- albumCache
continue
}
@@ -235,6 +236,7 @@ func (a *appData) cacheAlbumDescription(getAlbum <-chan *Album, toIndex chan<- *
a.errors <- fmt.Errorf("[CACHE ALBUMS]: storing %s: %s", album, err)
continue
}
a.cover.RegisterCover(album.ID, album.CoverURL)
toIndex <- album
}
log.Printf("[CACHE ALBUMS] %d albums cached", nbAlbums)