From e607a67f0023741dde53e76eda33d43b6bf2ff87 Mon Sep 17 00:00:00 2001 From: Thirrian Date: Mon, 12 Mar 2018 17:03:59 +0100 Subject: [PATCH] Fixed: Sorting for series "A.P. Bio" closes #2450 --- .../TvTests/SeriesTitleNormalizerFixture.cs | 3 ++- src/NzbDrone.Core/Tv/SeriesTitleNormalizer.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core.Test/TvTests/SeriesTitleNormalizerFixture.cs b/src/NzbDrone.Core.Test/TvTests/SeriesTitleNormalizerFixture.cs index 4355f77e0..148690091 100644 --- a/src/NzbDrone.Core.Test/TvTests/SeriesTitleNormalizerFixture.cs +++ b/src/NzbDrone.Core.Test/TvTests/SeriesTitleNormalizerFixture.cs @@ -8,7 +8,8 @@ namespace NzbDrone.Core.Test.TvTests public class SeriesTitleNormalizerFixture { [TestCase("A to Z", 281588, "a to z")] - [TestCase("A. D. - The Trials & Triumph of the Early Church", 266757, "ad trials triumph early church")] + [TestCase("A.D. The Bible Continues", 289260, "ad bible continues")] + [TestCase("A.P. Bio", 328534, "ap bio")] public void should_use_precomputed_title(string title, int tvdbId, string expected) { SeriesTitleNormalizer.Normalize(title, tvdbId).Should().Be(expected); diff --git a/src/NzbDrone.Core/Tv/SeriesTitleNormalizer.cs b/src/NzbDrone.Core/Tv/SeriesTitleNormalizer.cs index 9fc2c5933..ba10e8d83 100644 --- a/src/NzbDrone.Core/Tv/SeriesTitleNormalizer.cs +++ b/src/NzbDrone.Core/Tv/SeriesTitleNormalizer.cs @@ -7,8 +7,8 @@ namespace NzbDrone.Core.Tv private readonly static Dictionary PreComputedTitles = new Dictionary { { 281588, "a to z" }, - { 266757, "ad trials triumph early church" }, - { 289260, "ad bible continues"} + { 289260, "ad bible continues"}, + { 328534, "ap bio"} }; public static string Normalize(string title, int tvdbId)