mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-24 08:42:19 +02:00
Log replacement regex
This commit is contained in:
parent
35edef91c6
commit
ab578566be
@ -561,6 +561,7 @@ public static ParsedEpisodeInfo ParseTitle(string title)
|
||||
{
|
||||
if (replace.TryReplace(ref releaseTitle))
|
||||
{
|
||||
Logger.Trace($"Replace regex: {replace}");
|
||||
Logger.Debug("Substituted with " + releaseTitle);
|
||||
}
|
||||
}
|
||||
|
@ -42,5 +42,10 @@ public bool TryReplace(ref string input)
|
||||
input = _regex.Replace(input, _replacementFormat);
|
||||
return result;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return _regex.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user