mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-05 21:33:02 +02:00
Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
8fec510971
commit
12a54c070e
|
@ -487,7 +487,7 @@ namespace MediaBrowser.Providers.Manager
|
|||
{
|
||||
using var response = await provider.GetImageResponse(url, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
// Sometimes providers send back bad url's. Just move to the next image
|
||||
// Sometimes providers send back bad urls. Just move to the next image
|
||||
if (response.StatusCode == HttpStatusCode.NotFound || response.StatusCode == HttpStatusCode.Forbidden)
|
||||
{
|
||||
_logger.LogDebug("{Url} returned {StatusCode}, ignoring", url, response.StatusCode);
|
||||
|
@ -594,7 +594,7 @@ namespace MediaBrowser.Providers.Manager
|
|||
{
|
||||
using var response = await provider.GetImageResponse(url, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
// Sometimes providers send back bad url's. Just move to the next image
|
||||
// Sometimes providers send back bad urls. Just move to the next image
|
||||
if (response.StatusCode == HttpStatusCode.NotFound || response.StatusCode == HttpStatusCode.Forbidden)
|
||||
{
|
||||
_logger.LogDebug("{Url} returned {StatusCode}, ignoring", url, response.StatusCode);
|
||||
|
|
Loading…
Reference in a new issue