1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-21 23:33:00 +00:00

Fixed: Parsing of quality when release group contains Remux

Closes #4594
This commit is contained in:
Mark McDowall 2021-09-30 10:58:45 -07:00
parent c0a961bb94
commit 8ad5e5dd13
2 changed files with 2 additions and 1 deletions

View file

@ -139,6 +139,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("The Series S01E07 - Motor zmen (CZ)[TvRip][HEVC][720p]", false)]
[TestCase("The.Series.S05E06.720p.HDTV.x264-FHD", false)]
[TestCase("Series.Title.1x01.ITA.720p.x264-RlsGrp [01/54] - \"series.title.1x01.ita.720p.x264-rlsgrp.nfo\"", false)]
[TestCase("[TMS-Remux].Kamen.Rider.X.21.720p.[76EA1C53].mkv", false)]
public void should_parse_hdtv720p_quality(string title, bool proper)
{
ParseAndVerifyQuality(title, Quality.HDTV720p, proper);

View file

@ -64,7 +64,7 @@ namespace NzbDrone.Core.Parser
private static readonly Regex HighDefPdtvRegex = new Regex(@"hr[-_. ]ws", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex RemuxRegex = new Regex(@"\b(?<remux>(BD)?[-_. ]?Remux)\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex RemuxRegex = new Regex(@"[_. ](?<remux>(?:(BD)[-_. ])?Remux)\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public static QualityModel ParseQuality(string name)
{