diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-07-09 13:39:04 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-07-09 13:39:04 -0400 |
| commit | 959c6a397cf9bb7c5494e8bb04d9b8f7dff40383 (patch) | |
| tree | 2f0b79c43302ec8fa026b3a2b2cbf01365a436ef /MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeasonResolver.cs | |
| parent | afaf7f7c5b39705d810b3e85b6f23a7d72f7106d (diff) | |
add new streambuilder options
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeasonResolver.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeasonResolver.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeasonResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeasonResolver.cs index 7d13b11ad1..eeac1345e8 100644 --- a/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeasonResolver.cs +++ b/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeasonResolver.cs @@ -38,10 +38,12 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV if (args.Parent is Series && args.IsDirectory) { var namingOptions = ((LibraryManager)_libraryManager).GetNamingOptions(); - + var series = ((Series)args.Parent); + var season = new Season { - IndexNumber = new SeasonPathParser(namingOptions, new RegexProvider()).Parse(args.Path, true, true).SeasonNumber + IndexNumber = new SeasonPathParser(namingOptions, new RegexProvider()).Parse(args.Path, true, true).SeasonNumber, + SeriesId = series.Id }; if (season.IndexNumber.HasValue && season.IndexNumber.Value == 0) |
