1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 12:32:31 +01:00

New: DSR x264 releases will be considered SDTV releases, instead of Unknown.

This commit is contained in:
Mark McDowall 2012-04-25 08:32:42 -07:00
parent 2c7a2df3ea
commit 05b91dbb4f
2 changed files with 4 additions and 3 deletions

View File

@ -162,6 +162,9 @@ public void unparsable_title_should_report_title()
[TestCase("White.Van.Man.2011.S02E01.WS.PDTV.x264-REPACK-TLA", QualityTypes.SDTV, true)]
[TestCase("WEEDS.S03E01-06.DUAL.XviD.Bluray.AC3-REPACK.-HELLYWOOD.avi", QualityTypes.DVD, true)]
[TestCase("Pawn Stars S04E87 REPACK 720p HDTV x264 aAF", QualityTypes.HDTV, true)]
[TestCase("The Real Housewives of Vancouver S01E04 DSR x264 2HD", QualityTypes.SDTV, false)]
[TestCase("Vanguard S01E04 Mexicos Death Train DSR x264 MiNDTHEGAP", QualityTypes.SDTV, false)]
public void quality_parse(string postTitle, object quality, bool proper)
{
var result = Parser.ParseQuality(postTitle);

View File

@ -259,7 +259,7 @@ internal static Quality ParseQuality(string name)
return result;
}
if (normalizedName.Contains("xvid") || normalizedName.Contains("divx"))
if (normalizedName.Contains("xvid") || normalizedName.Contains("divx") || normalizedName.Contains("dsr"))
{
if (normalizedName.Contains("bluray"))
{
@ -300,8 +300,6 @@ internal static Quality ParseQuality(string name)
}
//Based on extension
if (result.QualityType == QualityTypes.Unknown)
{
try