Update Jellyfin.Plugin.CoverArtArchive/CoverArtArchiveImageProvider.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
Julien Machiels 2021-08-01 18:38:35 +02:00 committed by GitHub
parent 4b427f130e
commit cb09270fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ namespace Jellyfin.Plugin.CoverArtArchive
{
var release = await _coverArtClient.FetchGroupReleaseAsync(Guid.Parse(musicBrainzGroupId)).ConfigureAwait(false);
var frontImage = release.Images.SingleOrDefault(image => image.Types == CoverArtType.Front);
var frontImage = release.Images.FirstOrDefault(image => image.Types == CoverArtType.Front);
if (frontImage is not null)
{