fix missing seasons being returned when they shouldn't

This commit is contained in:
Luke Pulverenti 2013-11-01 13:37:27 -04:00
parent c543fdea3a
commit 4301440bfd

View File

@ -492,12 +492,12 @@ namespace MediaBrowser.Api.UserLibrary
private IEnumerable<BaseItem> FilterVirtualSeasons(GetItems request, IEnumerable<BaseItem> items, User user)
{
if (request.IsMissing.HasValue && request.IsUnaired.HasValue)
if (request.IsMissing.HasValue && request.IsVirtualUnaired.HasValue)
{
var isMissing = request.IsMissing.Value;
var isUnaired = request.IsUnaired.Value;
var isVirtualUnaired = request.IsVirtualUnaired.Value;
if (!isMissing && !isUnaired)
if (!isMissing && !isVirtualUnaired)
{
return items.Where(i =>
{