Fixed: Sorting for series "A.P. Bio"

closes #2450
pull/2458/head
Thirrian 7 years ago committed by Taloth
parent 96d7382a1c
commit e607a67f00

@ -8,7 +8,8 @@ namespace NzbDrone.Core.Test.TvTests
public class SeriesTitleNormalizerFixture public class SeriesTitleNormalizerFixture
{ {
[TestCase("A to Z", 281588, "a to z")] [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) public void should_use_precomputed_title(string title, int tvdbId, string expected)
{ {
SeriesTitleNormalizer.Normalize(title, tvdbId).Should().Be(expected); SeriesTitleNormalizer.Normalize(title, tvdbId).Should().Be(expected);

@ -7,8 +7,8 @@ namespace NzbDrone.Core.Tv
private readonly static Dictionary<int, string> PreComputedTitles = new Dictionary<int, string> private readonly static Dictionary<int, string> PreComputedTitles = new Dictionary<int, string>
{ {
{ 281588, "a to z" }, { 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) public static string Normalize(string title, int tvdbId)

Loading…
Cancel
Save