Fix:iTunes crash on matching genres #1025

This commit is contained in:
advplyr 2022-10-01 16:51:22 -05:00
parent cd04533eea
commit c23f31216a
6 changed files with 59 additions and 40 deletions

View file

@ -67,7 +67,7 @@ class iTunes {
author: data.artistName,
description: htmlSanitizer.stripAllTags(data.description || ''),
publishedYear: data.releaseDate ? data.releaseDate.split('-')[0] : null,
genres: data.primaryGenreName ? [data.primaryGenreName] : [],
genres: data.primaryGenreName ? [data.primaryGenreName] : null,
cover: this.getCoverArtwork(data)
}
}