mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 23:02:44 +00:00
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:
parent
4b367d3129
commit
097712f04f
2 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,7 @@ public void should_remove_common_tags_from_album_title(string title, string corr
|
|||
[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);
|
||||
|
|
|
@ -212,7 +212,7 @@ public static class 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[]
|
||||
|
|
Loading…
Reference in a new issue