From a880a44f4aa29a42205007cd20cd06fc66278e62 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 30 May 2013 14:19:50 -0400 Subject: [PATCH] fix boxsets getting resolved as series --- .../Library/Resolvers/TV/SeriesResolver.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeriesResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeriesResolver.cs index b3bb5683c..10e73b288 100644 --- a/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeriesResolver.cs +++ b/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeriesResolver.cs @@ -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();