mirror of https://github.com/Jackett/Jackett
Manual search: strip leading zeroes from episode
This commit is contained in:
parent
63cf687f02
commit
e6029c41a7
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue