mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fix error for movies with less than 4 characters. Fixes #507
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user