Manual search: strip leading zeroes from episode

This commit is contained in:
kaso17 2017-10-17 11:15:28 +02:00
parent 63cf687f02
commit e6029c41a7
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ namespace Jackett.Models.DTO
var episodeMatch = Regex.Match(queryStr, @"E(\d{2,4}[A-Za-z]?)");
if (episodeMatch.Success)
{
stringQuery.Episode = episodeMatch.Groups[1].Value;
stringQuery.Episode = episodeMatch.Groups[1].Value.TrimStart(new char[] { '0' });
queryStr = queryStr.Remove(episodeMatch.Index, episodeMatch.Length);
}
queryStr = queryStr.Trim();