diff --git a/website/scripts/lib/htpc.groovy b/website/scripts/lib/htpc.groovy index ed3dc627..7dd15b9c 100644 --- a/website/scripts/lib/htpc.groovy +++ b/website/scripts/lib/htpc.groovy @@ -133,7 +133,7 @@ def fetchMovieArtwork(outputFile, movieInfo, category, language) { def fetchAllMovieArtwork(outputFolder, movieInfo, category, language) { // select and fetch artwork def artwork = TheMovieDB.getArtwork(movieInfo.id as String) - def selection = [language, 'en', null].findResults{ l -> artwork.findAll{ (l == it.language || l == null) && it.category == category } }.flatten().unique() + def selection = [language, 'en', null].findResults{ l -> artwork.findAll{ (l == it.language || l == null) && it.category == category } }.flatten().findAll{ it?.url }.unique() if (selection == null) { println "Artwork not found: $outputFolder" return null