diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-20 16:04:27 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-20 16:04:27 -0400 |
| commit | 1a00ac0bbe51f8777bcec0ee9ae12f96468a542b (patch) | |
| tree | f7808f0b4892aed3e1f984aa361b5e8e0236c8ad /MediaBrowser.Api/UserLibrary/ItemsService.cs | |
| parent | b4ea519395031f87a4c5154c34bccc621fc2dd95 (diff) | |
update db querying
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/ItemsService.cs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs index a48fcbc93..c54f25973 100644 --- a/MediaBrowser.Api/UserLibrary/ItemsService.cs +++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs @@ -232,7 +232,8 @@ namespace MediaBrowser.Api.UserLibrary MinCommunityRating = request.MinCommunityRating, MinCriticRating = request.MinCriticRating, ParentId = string.IsNullOrWhiteSpace(request.ParentId) ? (Guid?)null : new Guid(request.ParentId), - ParentIndexNumber = request.ParentIndexNumber + ParentIndexNumber = request.ParentIndexNumber, + AiredDuringSeason = request.AiredDuringSeason }; if (!string.IsNullOrWhiteSpace(request.Ids)) @@ -445,21 +446,6 @@ namespace MediaBrowser.Api.UserLibrary } } - if (request.AiredDuringSeason.HasValue) - { - var episode = i as Episode; - - if (episode == null) - { - return false; - } - - if (!Series.FilterEpisodesBySeason(new[] { episode }, request.AiredDuringSeason.Value, true).Any()) - { - return false; - } - } - return true; } } |
