2014-11-05 16:45:50 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Tv
|
|
|
|
|
{
|
|
|
|
|
public static class SeriesTitleNormalizer
|
|
|
|
|
{
|
|
|
|
|
private readonly static Dictionary<Int32, String> PreComputedTitles = new Dictionary<Int32, String>
|
|
|
|
|
{
|
2014-12-12 23:49:32 +00:00
|
|
|
|
{ 281588, "a to z" },
|
|
|
|
|
{ 266757, "ad trials triumph early church" }
|
2014-11-05 16:45:50 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static String Normalize(String title, Int32 tvdbId)
|
|
|
|
|
{
|
|
|
|
|
if (PreComputedTitles.ContainsKey(tvdbId))
|
|
|
|
|
{
|
|
|
|
|
return PreComputedTitles[tvdbId];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Parser.Parser.NormalizeTitle(title).ToLower();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|