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/Reports/ReportsService.cs | |
| parent | b4ea519395031f87a4c5154c34bccc621fc2dd95 (diff) | |
update db querying
Diffstat (limited to 'MediaBrowser.Api/Reports/ReportsService.cs')
| -rw-r--r-- | MediaBrowser.Api/Reports/ReportsService.cs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/MediaBrowser.Api/Reports/ReportsService.cs b/MediaBrowser.Api/Reports/ReportsService.cs index 59e969235..4ff3dcf26 100644 --- a/MediaBrowser.Api/Reports/ReportsService.cs +++ b/MediaBrowser.Api/Reports/ReportsService.cs @@ -259,7 +259,8 @@ namespace MediaBrowser.Api.Reports MaxPlayers = request.MaxPlayers, MinCommunityRating = request.MinCommunityRating, MinCriticRating = request.MinCriticRating, - ParentIndexNumber = request.ParentIndexNumber + ParentIndexNumber = request.ParentIndexNumber, + AiredDuringSeason = request.AiredDuringSeason }; if (!string.IsNullOrWhiteSpace(request.Ids)) @@ -487,21 +488,6 @@ namespace MediaBrowser.Api.Reports } } - 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; } |
