From 5355ac40216d6f3bcb9aa60c9d960332ab2a84ee Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 20 May 2013 12:43:22 -0400 Subject: [PATCH] don't misidentify xbmc trailers as movies --- .../Library/Resolvers/Movies/MovieResolver.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs index 961e5e500..a8b8359d8 100644 --- a/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs +++ b/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs @@ -157,6 +157,12 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies continue; } + // Don't misidentify xbmc trailers as a movie + if (child.Name.IndexOf("-trailer", StringComparison.OrdinalIgnoreCase) != -1) + { + continue; + } + var childArgs = new ItemResolveArgs(ApplicationPaths) { FileInfo = child,