2016-12-23 21:45:24 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-11-05 16:45:50 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Tv
|
|
|
|
|
{
|
|
|
|
|
public static class SeriesTitleNormalizer
|
|
|
|
|
{
|
2015-10-03 17:45:26 +00:00
|
|
|
|
private readonly static Dictionary<int, string> PreComputedTitles = new Dictionary<int, string>
|
2014-11-05 16:45:50 +00:00
|
|
|
|
{
|
2014-12-12 23:49:32 +00:00
|
|
|
|
{ 281588, "a to z" },
|
2018-03-12 16:03:59 +00:00
|
|
|
|
{ 289260, "ad bible continues"},
|
|
|
|
|
{ 328534, "ap bio"}
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|