mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-25 23:32:41 +00:00
parent
321d99a597
commit
c7ef370060
2 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@ public void should_remove_accents_from_title()
|
|||
[TestCase("Songs of Experience (Deluxe Edition)", "Songs of Experience")]
|
||||
[TestCase("Mr. Bad Guy [Special Edition]", "Mr. Bad Guy")]
|
||||
[TestCase("Sweet Dreams (Album)", "Sweet Dreams")]
|
||||
[TestCase("Now What?! (Limited Edition)", "Now What?!")]
|
||||
public void should_remove_common_tags_from_album_title(string title, string correct)
|
||||
{
|
||||
var result = Parser.Parser.CleanAlbumTitle(title);
|
||||
|
|
|
@ -200,7 +200,7 @@ public static class Parser
|
|||
|
||||
private static readonly string[] Numbers = new[] { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" };
|
||||
|
||||
private static readonly Regex CommonTagRegex = new Regex(@"(\[|\(){1}(version|deluxe|single|clean|album|special|bonus)+\s*.*(\]|\)){1}", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
private static readonly Regex CommonTagRegex = new Regex(@"(\[|\(){1}(version|limited|deluxe|single|clean|album|special|bonus)+\s*.*(\]|\)){1}", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
|
||||
public static ParsedTrackInfo ParseMusicPath(string path)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue