TransmitheNet: Fix Titles with extension (#343)

This commit is contained in:
flightlevel 2016-05-17 23:25:26 +10:00
parent 3b13fa84a4
commit ece16d1075
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ namespace Jackett.Indexers
}
else
{
title = title.Remove(title.LastIndexOf("."));
if (title.Length > 5 && title.Substring(title.Length - 5).Contains("."))
{
title = title.Remove(title.LastIndexOf("."));
}
}
release.Title = title;