mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-26 15:52:42 +00:00
parent
c795951857
commit
674e1196b3
2 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,7 @@ public void should_remove_accents_from_title()
|
|||
[TestCase("Mr. Bad Guy [Special Edition]", "Mr. Bad Guy")]
|
||||
[TestCase("Sweet Dreams (Album)", "Sweet Dreams")]
|
||||
[TestCase("Now What?! (Limited Edition)", "Now What?!")]
|
||||
[TestCase("Random Album Title (Promo CD)", "Random Album Title")]
|
||||
public void should_remove_common_tags_from_album_title(string title, string correct)
|
||||
{
|
||||
var result = Parser.Parser.CleanAlbumTitle(title);
|
||||
|
|
|
@ -202,7 +202,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(@"(\[|\(){1}(version|limited|deluxe|single|clean|album|special|bonus)+\s*.*(\]|\)){1}", RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||
new Regex(@"(\[|\(){1}(version|limited|deluxe|single|clean|album|special|bonus|promo)+\s*.*(\]|\)){1}", RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||
};
|
||||
|
||||
public static ParsedTrackInfo ParseMusicPath(string path)
|
||||
|
|
Loading…
Reference in a new issue