aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/TV
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-02-06 01:08:55 -0500
committerGitHub <noreply@github.com>2017-02-06 01:08:55 -0500
commit2ceaa50ea737e88aca74c4af16a5c969e07d5f5a (patch)
treef74ffd55b84f50b36f7f99b75dc10c5c27bc5b91 /Emby.Server.Implementations/TV
parent84d2a5303b2eee311628876851335b7b926aa2ea (diff)
parent6f1a300bdef907415160728670726735067efc7a (diff)
Merge pull request #2445 from MediaBrowser/beta
Beta
Diffstat (limited to 'Emby.Server.Implementations/TV')
-rw-r--r--Emby.Server.Implementations/TV/TVSeriesManager.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/TV/TVSeriesManager.cs b/Emby.Server.Implementations/TV/TVSeriesManager.cs
index 6bf4125253..9dfaa102a2 100644
--- a/Emby.Server.Implementations/TV/TVSeriesManager.cs
+++ b/Emby.Server.Implementations/TV/TVSeriesManager.cs
@@ -144,12 +144,19 @@ namespace Emby.Server.Implementations.TV
// If viewing all next up for all series, remove first episodes
// But if that returns empty, keep those first episodes (avoid completely empty view)
var alwaysEnableFirstEpisode = !string.IsNullOrWhiteSpace(request.SeriesId);
+ var anyFound = false;
return allNextUp
.Where(i =>
{
if (alwaysEnableFirstEpisode || i.Item1 != DateTime.MinValue)
{
+ anyFound = true;
+ return true;
+ }
+
+ if (!anyFound && i.Item1 == DateTime.MinValue)
+ {
return true;
}