From 5f9e285c707b3235c5468525c47b87167ce32d7b Mon Sep 17 00:00:00 2001 From: Tim Turner Date: Sat, 7 Jan 2017 20:55:14 -0500 Subject: [PATCH] Fix issues with ", the" not trimming properly --- src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index dc5a3a3ed..14957c0ef 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -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; }