Fixed: Allow text in front of cleaned Album/Track tag (#498)

* Fixed: Allow text in front of cleaned tag

* fixup! Add another test case that shouldnt be matched.
This commit is contained in:
Qstick
2018-09-16 22:10:25 -04:00
committed by GitHub
parent d45d0ab1f6
commit 56e1f53834
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -207,7 +207,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(@"(\[|\(){1}(version|limited|deluxe|single|clean|album|special|bonus|promo)+\s*.*(\]|\)){1}", RegexOptions.IgnoreCase | RegexOptions.Compiled),
new Regex(@"(?:\(|\[)(?:[^\(\[]*)(?:version|limited|deluxe|single|clean|album|special|bonus|promo)(?:[^\)\]]*)(?:\)|\])", RegexOptions.IgnoreCase | RegexOptions.Compiled)
};
public static ParsedTrackInfo ParseMusicPath(string path)