Disabling next/previous episode on movie's watchitems

This commit is contained in:
Zoe Roux 2020-06-25 03:21:29 +02:00
parent 9d6efebcf2
commit 5a4f655aec

View File

@ -82,6 +82,9 @@ namespace Kyoo.Models
episode.Tracks.Where(x => x.Type == StreamType.Subtitle),
episode.Tracks.FirstOrDefault(x => x.Type == StreamType.Video))
{
if (episode.Show.IsMovie)
return;
if (EpisodeNumber > 1)
PreviousEpisode = episode.Season.Episodes.FirstOrDefault(x => x.EpisodeNumber == EpisodeNumber - 1);
else if (SeasonNumber > 1)