1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-02 21:26:08 +00:00

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

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();