improve support for name (original title).ext

This commit is contained in:
Luke Pulverenti 2017-10-14 02:52:05 -04:00
parent 0351c968c3
commit 2d63bdea94

View File

@ -100,6 +100,12 @@ namespace MediaBrowser.Providers.Movies
name = name.Replace("!", " ");
name = name.Replace("?", " ");
var parenthIndex = name.IndexOf('(');
if (parenthIndex != -1)
{
name = name.Substring(0, parenthIndex);
}
name = name.Trim();
// Search again if the new name is different