|
|
|
@ -5,6 +5,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
|
@ -678,10 +679,17 @@ namespace MediaBrowser.Providers.Manager
|
|
|
|
|
if (localItem.HasMetadata)
|
|
|
|
|
{
|
|
|
|
|
foreach (var remoteImage in localItem.RemoteImages)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
await ProviderManager.SaveImage(item, remoteImage.url, remoteImage.type, null, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
refreshResult.UpdateType |= ItemUpdateType.ImageUpdate;
|
|
|
|
|
}
|
|
|
|
|
catch (HttpRequestException ex)
|
|
|
|
|
{
|
|
|
|
|
Logger.LogError(ex, "Could not save {ImageType} image: {Url}", Enum.GetName(remoteImage.type), remoteImage.url);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (imageService.MergeImages(item, localItem.Images))
|
|
|
|
|
{
|
|
|
|
|