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:
parent
63cf687f02
commit
e6029c41a7
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue