From e774e6a0383d4912546afebdae97c64462aeacc7 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Mon, 9 Jan 2017 21:37:37 +0100 Subject: [PATCH] Fix for importing movie folders with the at the end. --- src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index 650bd0cc4..cdf86f436 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -165,10 +165,10 @@ namespace NzbDrone.Core.MetadataSource.SkyHook { if(title.EndsWith(",the")) { - title = title.Substring(title.Length - 4); + title = title.Substring(0, title.Length - 4); } else if(title.EndsWith(", the")) { - title = title.Substring(title.Length - 5); + title = title.Substring(0, title.Length - 5); } return title; }