Fix issues with ", the" not trimming properly

This commit is contained in:
Tim Turner 2017-01-07 20:55:14 -05:00
commit 5f9e285c70

View file

@ -192,9 +192,12 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
private string StripTrailingTheFromTitle(string title)
{
if(title.EndsWith(", the") || title.EndsWith(",the"))
if(title.EndsWith(",the"))
{
title = title.Substring(title.Length - 4);
} else if(title.EndsWith(", the"))
{
title = title.Substring(title.Length - 5);
}
return title;
}