Fixed: Clean Remaster from track titles prior to compare

Some albums get stuck with import issues if they contain `remaster`. Clean this before running through the distance calc.
This commit is contained in:
Qstick 2022-12-11 23:42:13 -06:00
parent 4b367d3129
commit 097712f04f
2 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("Alles Schon Gesehen (Feat. Deichkind)", "Alles Schon Gesehen")]
[TestCase("Science Fiction/Double Feature", "Science Fiction/Double Feature")]
[TestCase("Dancing Feathers", "Dancing Feathers")]
[TestCase("D.J. (2017 Remaster)", "D.J.")]
public void should_remove_common_tags_from_track_title(string title, string correct)
{
var result = Parser.Parser.CleanTrackTitle(title);

View File

@ -212,7 +212,7 @@ namespace NzbDrone.Core.Parser
private static readonly Regex[] CommonTagRegex = new Regex[]
{
new Regex(@"(\[|\()*\b((featuring|feat.|feat|ft|ft.)\s{1}){1}\s*.*(\]|\))*", RegexOptions.IgnoreCase | RegexOptions.Compiled),
new Regex(@"(?:\(|\[)(?:[^\(\[]*)(?:version|limited|deluxe|single|clean|album|special|bonus|promo|remastered)(?:[^\)\]]*)(?:\)|\])", RegexOptions.IgnoreCase | RegexOptions.Compiled)
new Regex(@"(?:\(|\[)(?:[^\(\[]*)(?:version|limited|deluxe|single|clean|album|special|bonus|promo|remaster(ed)?)(?:[^\)\]]*)(?:\)|\])", RegexOptions.IgnoreCase | RegexOptions.Compiled)
};
private static readonly Regex[] BracketRegex = new Regex[]