ensure only valid images are saved in ItemImageProvider

pull/5672/head
Claus Vium 4 years ago committed by GitHub
parent b49d50e634
commit df60d176b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -469,6 +469,7 @@ namespace MediaBrowser.Providers.Manager
try
{
using var response = await provider.GetImageResponse(url, cancellationToken).ConfigureAwait(false);
response.EnsureSuccessStatusCode();
await using var stream = await response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
await _providerManager.SaveImage(

Loading…
Cancel
Save