mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-30 19:54:16 -04:00
Fixing a bug with the next season for the next episode of the watch item
This commit is contained in:
parent
fbca388e33
commit
92fdc5e6af
@ -101,7 +101,7 @@ namespace Kyoo.Models
|
|||||||
if (EpisodeNumber >= episode.Season.Episodes.Count())
|
if (EpisodeNumber >= episode.Season.Episodes.Count())
|
||||||
{
|
{
|
||||||
NextEpisode = episode.Show.Seasons
|
NextEpisode = episode.Show.Seasons
|
||||||
.FirstOrDefault(x => x.SeasonNumber == SeasonNumber - 1)?.Episodes
|
.FirstOrDefault(x => x.SeasonNumber == SeasonNumber + 1)?.Episodes
|
||||||
.FirstOrDefault(x => x.EpisodeNumber == 1);
|
.FirstOrDefault(x => x.EpisodeNumber == 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user