denormalize seasonid

This commit is contained in:
Luke Pulverenti
2016-07-05 01:40:18 -04:00
parent 73e2b1f283
commit 2772d59559
11 changed files with 135 additions and 166 deletions

View File

@@ -429,7 +429,8 @@ namespace MediaBrowser.Providers.TV
IndexNumber = episodeNumber,
ParentIndexNumber = seasonNumber,
Id = _libraryManager.GetNewItemId((series.Id + seasonNumber.ToString(_usCulture) + name), typeof(Episode)),
IsVirtualItem = true
IsVirtualItem = true,
SeasonId = season == null ? (Guid?)null : season.Id
};
episode.SetParent(season);