Add query parameter to disable returning first episode as next up

This commit is contained in:
crobibero
2021-01-15 15:08:48 -07:00
parent 3d754fa5bf
commit 3b9567d583
3 changed files with 16 additions and 2 deletions

View File

@@ -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;