mirror of
https://github.com/Readarr/Readarr
synced 2026-02-28 09:33:29 +01:00
Fixed: Improve parser when release has colons in title
This commit is contained in:
parent
c61315b90e
commit
1cdcfe25c0
2 changed files with 2 additions and 2 deletions
|
|
@ -140,7 +140,7 @@ public void should_parse_quality_from_extension(string title)
|
|||
|
||||
//[TestCase("ADELE 25 CD FLAC 2015 PERFECT", "Adele", "25")]
|
||||
[TestCase("A.I. - Sex & Robots [2007/MP3/V0(VBR)]", "A I", "Sex & Robots")]
|
||||
[TestCase("Jay-Z - 4:44 (Deluxe Edition) (2017) 320", "Jay-Z", "444")]
|
||||
[TestCase("Jay-Z - 4:44 (Deluxe Edition) (2017) 320", "Jay-Z", "4:44")]
|
||||
|
||||
//[TestCase("Roberta Flack 2006 - The Very Best of", "Roberta Flack", "The Very Best of")]
|
||||
[TestCase("VA - NOW Thats What I Call Music 96 (2017) [Mp3~Kbps]", "VA", "NOW Thats What I Call Music 96")]
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ public static class Parser
|
|||
RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
|
||||
//TODO Rework this Regex for Music
|
||||
private static readonly RegexReplace SimpleTitleRegex = new RegexReplace(@"(?:(480|720|1080|2160|320)[ip]|[xh][\W_]?26[45]|DD\W?5\W1|[<>*:|]|848x480|1280x720|1920x1080|3840x2160|4096x2160|(8|10)b(it)?)\s*",
|
||||
private static readonly RegexReplace SimpleTitleRegex = new RegexReplace(@"(?:(480|720|1080|2160|320)[ip]|[xh][\W_]?26[45]|DD\W?5\W1|848x480|1280x720|1920x1080|3840x2160|4096x2160|(8|10)b(it)?)\s*",
|
||||
string.Empty,
|
||||
RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue