Merge pull request #16236 from theguymadmax/fix-season-unknown

Fix episodes appearing in Season Unknown incorrectly and prevent unnecessary virtual season creation
This commit is contained in:
Bond-009
2026-02-15 10:48:55 +01:00
committed by GitHub
2 changed files with 34 additions and 1 deletions

View File

@@ -451,7 +451,7 @@ namespace MediaBrowser.Controller.Entities.TV
if (!currentSeasonNumber.HasValue && !seasonNumber.HasValue && parentSeason.LocationType == LocationType.Virtual)
{
return true;
return episodeItem.Season is null or { LocationType: LocationType.Virtual };
}
var season = episodeItem.Season;