|
@@ -44,20 +44,24 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- try
|
|
|
- {
|
|
|
- await DownloadImage(item, cancellationToken).ConfigureAwait(false);
|
|
|
- }
|
|
|
- catch (HttpException ex)
|
|
|
+ var channel = (Channel)item;
|
|
|
+
|
|
|
+ if (channel.HasProviderImage ?? true)
|
|
|
{
|
|
|
- // Don't fail the provider on a 404
|
|
|
- if (!ex.StatusCode.HasValue || ex.StatusCode.Value != HttpStatusCode.NotFound)
|
|
|
+ try
|
|
|
{
|
|
|
- throw;
|
|
|
+ await DownloadImage(item, cancellationToken).ConfigureAwait(false);
|
|
|
+ }
|
|
|
+ catch (HttpException ex)
|
|
|
+ {
|
|
|
+ // Don't fail the provider on a 404
|
|
|
+ if (!ex.StatusCode.HasValue || ex.StatusCode.Value != HttpStatusCode.NotFound)
|
|
|
+ {
|
|
|
+ throw;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
SetLastRefreshed(item, DateTime.UtcNow, providerInfo);
|
|
|
return true;
|
|
|
}
|