mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fix issues with ", the" not trimming properly
This commit is contained in:
parent
902824cdbd
commit
5f9e285c70
@ -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