Remove unnecessary N/A checks (converter changes them to null)

This commit is contained in:
cvium 2021-11-20 08:32:07 +01:00
parent d8c3b8e7f8
commit 71a0abe211
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ namespace MediaBrowser.Providers.Plugins.Omdb
var rootObject = await _omdbProvider.GetRootObject(imdbId, cancellationToken).ConfigureAwait(false);
if (string.IsNullOrEmpty(rootObject.Poster) || string.Equals("N/A", rootObject.Poster, StringComparison.OrdinalIgnoreCase))
if (string.IsNullOrEmpty(rootObject.Poster))
{
return Enumerable.Empty<RemoteImageInfo>();
}

View File

@ -205,7 +205,7 @@ namespace MediaBrowser.Providers.Plugins.Omdb
item.PremiereDate = released;
}
if (!string.IsNullOrWhiteSpace(result.Poster) && !string.Equals(result.Poster, "N/A", StringComparison.OrdinalIgnoreCase))
if (!string.IsNullOrWhiteSpace(result.Poster))
{
item.ImageUrl = result.Poster;
}