From 4301440bfdedc893ff29fd205e2d5abb39652cda Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 1 Nov 2013 13:37:27 -0400 Subject: [PATCH] fix missing seasons being returned when they shouldn't --- MediaBrowser.Api/UserLibrary/ItemsService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs index 9c3ea7bf0..b6963f8b2 100644 --- a/MediaBrowser.Api/UserLibrary/ItemsService.cs +++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs @@ -492,12 +492,12 @@ namespace MediaBrowser.Api.UserLibrary private IEnumerable FilterVirtualSeasons(GetItems request, IEnumerable 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 => {