Fix for missing albums property on fanart.tv artists

This commit is contained in:
Brian Beck 2018-08-09 01:04:46 -07:00
parent 505b679376
commit 3ed5ba12d7

View file

@ -40,7 +40,7 @@ export default function createLoader(options) {
}) })
.then(body => { .then(body => {
if (entityType === 'artist') { if (entityType === 'artist') {
const releaseGroupIDs = Object.keys(body.albums) const releaseGroupIDs = Object.keys(body.albums || {})
debug( debug(
`Priming album cache with ${releaseGroupIDs.length} album(s).` `Priming album cache with ${releaseGroupIDs.length} album(s).`
) )