mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Don't return first episodes in next up
This commit is contained in:
parent
536ac4c11c
commit
c196ad3351
@ -146,23 +146,10 @@ namespace Emby.Server.Implementations.TV
|
|||||||
var allNextUp = seriesKeys
|
var allNextUp = seriesKeys
|
||||||
.Select(i => GetNextUp(i, currentUser, dtoOptions));
|
.Select(i => GetNextUp(i, currentUser, dtoOptions));
|
||||||
|
|
||||||
// allNextUp = allNextUp.OrderByDescending(i => i.Item1);
|
|
||||||
|
|
||||||
// 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.IsNullOrEmpty(request.SeriesId);
|
|
||||||
var anyFound = false;
|
|
||||||
|
|
||||||
return allNextUp
|
return allNextUp
|
||||||
.Where(i =>
|
.Where(i =>
|
||||||
{
|
{
|
||||||
if (alwaysEnableFirstEpisode || i.Item1 != DateTime.MinValue)
|
if (i.Item1 != DateTime.MinValue)
|
||||||
{
|
|
||||||
anyFound = true;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!anyFound && i.Item1 == DateTime.MinValue)
|
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user