mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-13 22:43:35 +01:00
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 @@ public void unparsable_title_should_report_title()
|
|||||||
[TestCase("White.Van.Man.2011.S02E01.WS.PDTV.x264-REPACK-TLA", QualityTypes.SDTV, true)]
|
[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("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("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)
|
public void quality_parse(string postTitle, object quality, bool proper)
|
||||||
{
|
{
|
||||||
var result = Parser.ParseQuality(postTitle);
|
var result = Parser.ParseQuality(postTitle);
|
||||||
|
@ -259,7 +259,7 @@ internal static Quality ParseQuality(string name)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (normalizedName.Contains("xvid") || normalizedName.Contains("divx"))
|
if (normalizedName.Contains("xvid") || normalizedName.Contains("divx") || normalizedName.Contains("dsr"))
|
||||||
{
|
{
|
||||||
if (normalizedName.Contains("bluray"))
|
if (normalizedName.Contains("bluray"))
|
||||||
{
|
{
|
||||||
@ -300,8 +300,6 @@ internal static Quality ParseQuality(string name)
|
|||||||
}
|
}
|
||||||
//Based on extension
|
//Based on extension
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (result.QualityType == QualityTypes.Unknown)
|
if (result.QualityType == QualityTypes.Unknown)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user