mirror of https://github.com/Sonarr/Sonarr
26 lines
993 B
C#
26 lines
993 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace NzbDrone.Core.Tv
|
|
{
|
|
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"}
|
|
};
|
|
|
|
public static string Normalize(string title, int tvdbId)
|
|
{
|
|
if (PreComputedTitles.ContainsKey(tvdbId))
|
|
{
|
|
return PreComputedTitles[tvdbId];
|
|
}
|
|
|
|
return Parser.Parser.NormalizeTitle(title).ToLower();
|
|
}
|
|
}
|
|
}
|