mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Add missing remux quality parsing tests
This commit is contained in:
parent
dd3b57da27
commit
a30ec0eb52
@ -25,6 +25,8 @@ public class QualityParserFixture : CoreTest
|
||||
new object[] { Quality.Bluray720p },
|
||||
new object[] { Quality.Bluray1080p },
|
||||
new object[] { Quality.Bluray2160p },
|
||||
new object[] { Quality.Bluray1080pRemux },
|
||||
new object[] { Quality.Bluray2160pRemux },
|
||||
};
|
||||
|
||||
public static object[] OtherSourceQualityParserCases =
|
||||
@ -41,6 +43,8 @@ public class QualityParserFixture : CoreTest
|
||||
new object[] { "720p BluRay", Quality.Bluray720p },
|
||||
new object[] { "1080p BluRay", Quality.Bluray1080p },
|
||||
new object[] { "2160p BluRay", Quality.Bluray2160p },
|
||||
new object[] { "1080p Remux", Quality.Bluray1080pRemux },
|
||||
new object[] { "2160p Remux", Quality.Bluray2160pRemux },
|
||||
};
|
||||
|
||||
[TestCase("S07E23 .avi ", false)]
|
||||
|
@ -64,7 +64,7 @@ public class QualityParser
|
||||
|
||||
private static readonly Regex HighDefPdtvRegex = new Regex(@"hr[-_. ]ws", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
|
||||
private static readonly Regex RemuxRegex = new Regex(@"[_. ](?<remux>(?:(BD)[-_. ])?Remux)\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private static readonly Regex RemuxRegex = new Regex(@"(?:[_. ]|\d{4}p-)(?<remux>(?:(BD|UHD)[-_. ]?)?Remux)\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
|
||||
public static QualityModel ParseQuality(string name)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user