update EpisodeResolver

This commit is contained in:
Luke Pulverenti 2017-02-01 15:56:28 -05:00
parent 6b136b97ec
commit 819efd2a7d
1 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,12 @@ namespace Emby.Server.Implementations.Library.Resolvers.TV
episode.SeasonId = season.Id;
episode.SeasonName = season.Name;
}
// Assume season 1 if there's no season folder and a season number could not be determined
if (season == null && !episode.ParentIndexNumber.HasValue && (episode.IndexNumber.HasValue || episode.PremiereDate.HasValue))
{
episode.ParentIndexNumber = 1;
}
}
return episode;