mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Fixed: Escape regex in ParseAlbumWithSearchCriteria (#244)
* Add regex escape to fix #231 * Add escape to artist name * Fix test case * Use single album parameter and add test cases * Add artist test cases * Add qualities to release titles * Create albums in ParserFixture * Added missing case in QualityParser. Handle escaping regex better for artists/albums that are just symbols. * Removed custom code to escape slashes. Enhanced regex to support more test cases. * Fixed Regex for other test cases. * Small enhancements to code. Removed log statement. * Tweaked one of my regex to account for not stripping ? from SimpleTitleRegex.
This commit is contained in:
@@ -122,6 +122,7 @@ namespace NzbDrone.Core.Parser
|
||||
else if (bitrate == BitRate.B256) { result.Quality = Quality.VORBIS_Q8; }
|
||||
else if (bitrate == BitRate.B320) { result.Quality = Quality.VORBIS_Q9; }
|
||||
else if (bitrate == BitRate.B500) { result.Quality = Quality.VORBIS_Q10; }
|
||||
else { result.Quality = Quality.Unknown; }
|
||||
break;
|
||||
case Codec.Unknown:
|
||||
if (bitrate == BitRate.B192) { result.Quality = Quality.MP3_192; }
|
||||
|
||||
Reference in New Issue
Block a user