From b20acc90638131a6623be0747fad60f7d6a07705 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 3 Nov 2018 11:58:00 -0700 Subject: [PATCH] Fixed: Sort The A-Team properly in series list --- .../TvTests/SeriesTitleNormalizerFixture.cs | 3 ++- src/NzbDrone.Core/Tv/SeriesTitleNormalizer.cs | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core.Test/TvTests/SeriesTitleNormalizerFixture.cs b/src/NzbDrone.Core.Test/TvTests/SeriesTitleNormalizerFixture.cs index 148690091..f64d73aec 100644 --- a/src/NzbDrone.Core.Test/TvTests/SeriesTitleNormalizerFixture.cs +++ b/src/NzbDrone.Core.Test/TvTests/SeriesTitleNormalizerFixture.cs @@ -1,4 +1,4 @@ -using FluentAssertions; +using FluentAssertions; using NUnit.Framework; using NzbDrone.Core.Tv; @@ -10,6 +10,7 @@ namespace NzbDrone.Core.Test.TvTests [TestCase("A to Z", 281588, "a to z")] [TestCase("A.D. The Bible Continues", 289260, "ad bible continues")] [TestCase("A.P. Bio", 328534, "ap bio")] + [TestCase("The A-Team", 77904, "ateam")] 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 ba10e8d83..890f5c7da 100644 --- a/src/NzbDrone.Core/Tv/SeriesTitleNormalizer.cs +++ b/src/NzbDrone.Core/Tv/SeriesTitleNormalizer.cs @@ -1,14 +1,15 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace NzbDrone.Core.Tv { public static class SeriesTitleNormalizer { - private readonly static Dictionary PreComputedTitles = new Dictionary + private static readonly Dictionary PreComputedTitles = new Dictionary { { 281588, "a to z" }, { 289260, "ad bible continues"}, - { 328534, "ap bio"} + { 328534, "ap bio"}, + { 77904, "ateam" } }; public static string Normalize(string title, int tvdbId)