Remove unnecessary N/A checks (converter changes them to null)
This commit is contained in:
parent
d8c3b8e7f8
commit
71a0abe211
|
@ -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>();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user