Fix error for movies with less than 4 characters. Fixes #507

pull/2/head
Leonardo Galli 8 years ago
parent 9522bf3095
commit f6a37186aa

@ -323,6 +323,12 @@ namespace NzbDrone.Core.Organizer
public static string TitleThe(string title)
{
string[] prefixes = { "The ", "An ", "A " };
if (title.Length < 5)
{
return title;
}
foreach (string prefix in prefixes)
{
int prefix_length = prefix.Length;

Loading…
Cancel
Save