Fixing a bug with the next season for the next episode of the watch item

This commit is contained in:
Zoe Roux 2020-07-06 02:22:02 +02:00
parent fbca388e33
commit 92fdc5e6af

View File

@ -101,7 +101,7 @@ namespace Kyoo.Models
if (EpisodeNumber >= episode.Season.Episodes.Count())
{
NextEpisode = episode.Show.Seasons
.FirstOrDefault(x => x.SeasonNumber == SeasonNumber - 1)?.Episodes
.FirstOrDefault(x => x.SeasonNumber == SeasonNumber + 1)?.Episodes
.FirstOrDefault(x => x.EpisodeNumber == 1);
}
else