mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Fix error for movies with less than 4 characters. Fixes #507
This commit is contained in:
parent
9522bf3095
commit
f6a37186aa
1 changed files with 6 additions and 0 deletions
|
@ -323,6 +323,12 @@ namespace NzbDrone.Core.Organizer
|
||||||
public static string TitleThe(string title)
|
public static string TitleThe(string title)
|
||||||
{
|
{
|
||||||
string[] prefixes = { "The ", "An ", "A " };
|
string[] prefixes = { "The ", "An ", "A " };
|
||||||
|
|
||||||
|
if (title.Length < 5)
|
||||||
|
{
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (string prefix in prefixes)
|
foreach (string prefix in prefixes)
|
||||||
{
|
{
|
||||||
int prefix_length = prefix.Length;
|
int prefix_length = prefix.Length;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue