mirror of https://github.com/lidarr/Lidarr
New: DSR x264 releases will be considered SDTV releases, instead of Unknown.
This commit is contained in:
parent
2c7a2df3ea
commit
05b91dbb4f
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue