1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Fix for importing movie folders with the at the end.

This commit is contained in:
Leonardo Galli 2017-01-09 21:37:37 +01:00
parent f19a1a5960
commit e774e6a038

View File

@ -165,10 +165,10 @@ private string StripTrailingTheFromTitle(string title)
{
if(title.EndsWith(",the"))
{
title = title.Substring(title.Length - 4);
title = title.Substring(0, title.Length - 4);
} else if(title.EndsWith(", the"))
{
title = title.Substring(title.Length - 5);
title = title.Substring(0, title.Length - 5);
}
return title;
}