Fixed: Sort The A-Team properly in series list
This commit is contained in:
parent
70d6d25178
commit
b20acc9063
|
@ -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);
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.Tv
|
||||
{
|
||||
public static class SeriesTitleNormalizer
|
||||
{
|
||||
private readonly static Dictionary<int, string> PreComputedTitles = new Dictionary<int, string>
|
||||
private static readonly Dictionary<int, string> PreComputedTitles = new Dictionary<int, string>
|
||||
{
|
||||
{ 281588, "a to z" },
|
||||
{ 289260, "ad bible continues"},
|
||||
{ 328534, "ap bio"}
|
||||
{ 328534, "ap bio"},
|
||||
{ 77904, "ateam" }
|
||||
};
|
||||
|
||||
public static string Normalize(string title, int tvdbId)
|
||||
|
|
Loading…
Reference in New Issue