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

closes #2450
This commit is contained in:
Thirrian 2018-03-12 17:03:59 +01:00 committed by Taloth
parent 96d7382a1c
commit e607a67f00
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -7,8 +7,8 @@ namespace NzbDrone.Core.Tv
private readonly static Dictionary<int, string> PreComputedTitles = new Dictionary<int, string>
{
{ 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)