Fix issues with ", the" not trimming properly

pull/2/head
Tim Turner 8 years ago
parent 902824cdbd
commit 5f9e285c70

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

Loading…
Cancel
Save