fix boxsets getting resolved as series

This commit is contained in:
Luke Pulverenti 2013-05-30 14:19:50 -04:00
parent c21c2f8518
commit a880a44f4a

View File

@ -57,6 +57,12 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
return null;
}
// Without these movies that have the name season in them could cause the parent folder to be resolved as a series
if (filename.IndexOf("[boxset]", StringComparison.OrdinalIgnoreCase) != -1 || filename.IndexOf("[tmdbid=", StringComparison.OrdinalIgnoreCase) != -1)
{
return null;
}
if (args.ContainsMetaFileByName("series.xml") || filename.IndexOf("[tvdbid=", StringComparison.OrdinalIgnoreCase) != -1 || TVUtils.IsSeriesFolder(args.Path, args.FileSystemChildren))
{
return new Series();