aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/TV
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2021-01-15 15:08:48 -0700
committercrobibero <cody@robibe.ro>2021-01-15 15:08:48 -0700
commit3b9567d58364c1eac0e99169ba8aef8d3bd6777f (patch)
tree8be2b09bdfa654f272365804f63b1c2f0c15f2d7 /Emby.Server.Implementations/TV
parent3d754fa5bfcd1b5376124f08b88e51bda5ff7e81 (diff)
Add query parameter to disable returning first episode as next up
Diffstat (limited to 'Emby.Server.Implementations/TV')
-rw-r--r--Emby.Server.Implementations/TV/TVSeriesManager.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/TV/TVSeriesManager.cs b/Emby.Server.Implementations/TV/TVSeriesManager.cs
index a8b1064cb..168c8fea0 100644
--- a/Emby.Server.Implementations/TV/TVSeriesManager.cs
+++ b/Emby.Server.Implementations/TV/TVSeriesManager.cs
@@ -153,6 +153,11 @@ namespace Emby.Server.Implementations.TV
return allNextUp
.Where(i =>
{
+ if (request.DisableFirstEpisode)
+ {
+ return i.Item1 != DateTime.MinValue;
+ }
+
if (alwaysEnableFirstEpisode || i.Item1 != DateTime.MinValue)
{
anyFound = true;