mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
parent
96d7382a1c
commit
e607a67f00
@ -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);
|
||||
|
@ -7,8 +7,8 @@ public static class SeriesTitleNormalizer
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user