|
|
|
@ -125,10 +125,6 @@ namespace Emby.Server.Implementations.Library.Resolvers.Movies
|
|
|
|
|
if (child.IsDirectory)
|
|
|
|
|
{
|
|
|
|
|
leftOver.Add(child);
|
|
|
|
|
}
|
|
|
|
|
else if (IsIgnored(child.Name))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -298,22 +294,6 @@ namespace Emby.Server.Implementations.Library.Resolvers.Movies
|
|
|
|
|
return item;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private bool IsIgnored(string filename)
|
|
|
|
|
{
|
|
|
|
|
// Ignore samples
|
|
|
|
|
var sampleFilename = " " + filename.Replace(".", " ", StringComparison.OrdinalIgnoreCase)
|
|
|
|
|
.Replace("-", " ", StringComparison.OrdinalIgnoreCase)
|
|
|
|
|
.Replace("_", " ", StringComparison.OrdinalIgnoreCase)
|
|
|
|
|
.Replace("!", " ", StringComparison.OrdinalIgnoreCase);
|
|
|
|
|
|
|
|
|
|
if (sampleFilename.IndexOf(" sample ", StringComparison.OrdinalIgnoreCase) != -1)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sets the initial item values.
|
|
|
|
|
/// </summary>
|
|
|
|
|