diff --git a/src/NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs b/src/NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs index 30d932ef9..06454fbfa 100644 --- a/src/NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs +++ b/src/NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs @@ -37,6 +37,14 @@ public void Setup() [TestCase("tvdb:78804", "Doctor Who (2005)")] [TestCase("TVDB:78804", "Doctor Who (2005)")] [TestCase("TVDB: 78804 ", "Doctor Who (2005)")] + [TestCase("TheBigBangTheory", "The Big Bang Theory")] + [TestCase("Agents of S.H.I.E.L.D.", "Marvel's Agents of S.H.I.E.L.D.")] + [TestCase("Marvel's Agents of S.H.I.E.L.D.", "Marvel's Agents of S.H.I.E.L.D.")] + [TestCase("Marvel'sAgentsOfS.H.I.E.L.D.", "Marvel's Agents of S.H.I.E.L.D.")] + [TestCase("Utopia (US) (2014)", "Utopia (US) (2014)")] + [TestCase("Utopia US 2014", "Utopia (US) (2014)")] + [TestCase("UtopiaUS2014", "Utopia (US) (2014)")] + [TestCase("@Midnight", "@midnight")] public void successful_search(string title, string expected) { var result = Subject.SearchForNewSeries(title); diff --git a/src/NzbDrone.Core/MetadataSource/TraktProxy.cs b/src/NzbDrone.Core/MetadataSource/TraktProxy.cs index c80640427..7615ec265 100644 --- a/src/NzbDrone.Core/MetadataSource/TraktProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/TraktProxy.cs @@ -19,8 +19,8 @@ public class TraktProxy : ISearchForNewSeries, IProvideSeriesInfo private readonly IHttpClient _httpClient; private static readonly Regex CollapseSpaceRegex = new Regex(@"\s+", RegexOptions.Compiled); private static readonly Regex InvalidSearchCharRegex = new Regex(@"(?:\*|\(|\)|'|!|@|\+)", RegexOptions.Compiled); - - + private static readonly Regex ExpandCamelCaseRegEx = new Regex(@"(?