mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05: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())
 | 
			
		||||
			{
 | 
			
		||||
				NextEpisode = episode.Show.Seasons
 | 
			
		||||
					.FirstOrDefault(x => x.SeasonNumber == SeasonNumber - 1)?.Episodes
 | 
			
		||||
					.FirstOrDefault(x => x.SeasonNumber == SeasonNumber + 1)?.Episodes
 | 
			
		||||
					.FirstOrDefault(x => x.EpisodeNumber == 1);
 | 
			
		||||
			}
 | 
			
		||||
			else
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user