2018-11-03 18:58:00 +00:00
|
|
|
using System.Collections.Generic;
|
2014-11-05 16:45:50 +00:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Tv
|
|
|
|
{
|
|
|
|
public static class SeriesTitleNormalizer
|
|
|
|
{
|
2018-11-03 18:58:00 +00:00
|
|
|
private static readonly Dictionary<int, string> PreComputedTitles = new Dictionary<int, string>
|
2014-11-05 16:45:50 +00:00
|
|
|
{
|
2021-08-03 04:43:28 +00:00
|
|
|
{ 281588, "a to z" },
|
|
|
|
{ 289260, "ad bible continues" },
|
|
|
|
{ 328534, "ap bio" },
|
|
|
|
{ 77904, "ateam" }
|
2014-11-05 16:45:50 +00:00
|
|
|
};
|
|
|
|
|
2015-10-03 17:45:26 +00:00
|
|
|
public static string Normalize(string title, int tvdbId)
|
2014-11-05 16:45:50 +00:00
|
|
|
{
|
|
|
|
if (PreComputedTitles.ContainsKey(tvdbId))
|
|
|
|
{
|
|
|
|
return PreComputedTitles[tvdbId];
|
|
|
|
}
|
|
|
|
|
|
|
|
return Parser.Parser.NormalizeTitle(title).ToLower();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|