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 @@ namespace NzbDrone.Core.Test
[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 @@ namespace NzbDrone.Core
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 @@ namespace NzbDrone.Core
}
//Based on extension
if (result.QualityType == QualityTypes.Unknown)
{
try