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:29 +02:00 committed by GitHub
parent bf35aeae8f
commit 4b427f130e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ namespace Jellyfin.Plugin.CoverArtArchive
{
var release = await _coverArtClient.FetchReleaseAsync(Guid.Parse(musicBrainzId)).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)
{