mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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);
|
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>();
|
return Enumerable.Empty<RemoteImageInfo>();
|
||||||
}
|
}
|
||||||
|
@ -205,7 +205,7 @@ namespace MediaBrowser.Providers.Plugins.Omdb
|
|||||||
item.PremiereDate = released;
|
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;
|
item.ImageUrl = result.Poster;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user