Merge pull request #11920 from Shadowghost/fix-season-path

Only set season path if season folder parsing was successful
This commit is contained in:
Niels van Velzen 2024-06-04 12:48:51 +02:00 committed by GitHub
commit d1c00ba4ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ namespace Emby.Server.Implementations.Library.Resolvers.TV
IndexNumber = seasonParserResult.SeasonNumber,
SeriesId = series.Id,
SeriesName = series.Name,
Path = seasonParserResult.IsSeasonFolder ? path : args.Parent.Path
Path = seasonParserResult.IsSeasonFolder ? path : null
};
if (!season.IndexNumber.HasValue || !seasonParserResult.IsSeasonFolder)