mirror of https://github.com/Sonarr/Sonarr
24 lines
774 B
C#
24 lines
774 B
C#
|
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>
|
|||
|
{
|
|||
|
{ 281588, "a to z" }
|
|||
|
};
|
|||
|
|
|||
|
public static String Normalize(String title, Int32 tvdbId)
|
|||
|
{
|
|||
|
if (PreComputedTitles.ContainsKey(tvdbId))
|
|||
|
{
|
|||
|
return PreComputedTitles[tvdbId];
|
|||
|
}
|
|||
|
|
|||
|
return Parser.Parser.NormalizeTitle(title).ToLower();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|