mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Merge pull request #48 from fedoranimus/develop
Harden parsing of imported movie titles
This commit is contained in:
commit
00d4bfd712
@ -192,9 +192,12 @@ private string[] SeparateYearFromTitle(string title)
|
||||
|
||||
private string StripTrailingTheFromTitle(string title)
|
||||
{
|
||||
if(title.EndsWith(", the") || title.EndsWith(",the"))
|
||||
if(title.EndsWith(",the"))
|
||||
{
|
||||
title = title.Substring(title.Length - 4);
|
||||
} else if(title.EndsWith(", the"))
|
||||
{
|
||||
title = title.Substring(title.Length - 5);
|
||||
}
|
||||
return title;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user