Fixed: Improve TrackMatching when title is slightly longer/shorter than DB (#491)

* improve TrackMatching

* Add unit test for TrackMatching

* rename NormalizeEpisodeTitle to NormalizeTrackTitle

* correct typo
This commit is contained in:
gismo2004
2018-09-19 03:29:45 +02:00
committed by Qstick
parent 2af4a5004f
commit 9b0a7c60ed
4 changed files with 85 additions and 25 deletions
+1 -1
View File
@@ -529,7 +529,7 @@ namespace NzbDrone.Core.Parser
return NormalizeRegex.Replace(name, string.Empty).ToLower().RemoveAccent();
}
public static string NormalizeEpisodeTitle(string title)
public static string NormalizeTrackTitle(string title)
{
title = SpecialEpisodeWordRegex.Replace(title, string.Empty);
title = PunctuationRegex.Replace(title, " ");