don't misidentify xbmc trailers as movies

This commit is contained in:
Luke Pulverenti 2013-05-20 12:43:22 -04:00
parent adfa53cad7
commit 5355ac4021

View File

@ -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,