mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 09:18:34 +00:00
PDTV will treated as SDTV.
This commit is contained in:
parent
57f380c70f
commit
7a1301610a
2 changed files with 2 additions and 1 deletions
|
@ -157,6 +157,7 @@ namespace NzbDrone.Core.Test
|
||||||
[TestCase("Nikita S02E01 HDTV XviD 2HD", QualityTypes.SDTV, false)]
|
[TestCase("Nikita S02E01 HDTV XviD 2HD", QualityTypes.SDTV, false)]
|
||||||
[TestCase("Gossip Girl S05E11 PROPER HDTV XviD 2HD", QualityTypes.SDTV, true)]
|
[TestCase("Gossip Girl S05E11 PROPER HDTV XviD 2HD", QualityTypes.SDTV, true)]
|
||||||
[TestCase("The Jonathan Ross Show S02E08 HDTV x264 FTP", QualityTypes.SDTV, false)]
|
[TestCase("The Jonathan Ross Show S02E08 HDTV x264 FTP", QualityTypes.SDTV, false)]
|
||||||
|
[TestCase("White.Van.Man.2011.S02E01.WS.PDTV.x264-TLA", 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);
|
||||||
|
|
|
@ -336,7 +336,7 @@ namespace NzbDrone.Core
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((normalizedName.Contains("sdtv") ||
|
if ((normalizedName.Contains("sdtv") || normalizedName.Contains("pdtv") ||
|
||||||
(result.QualityType == QualityTypes.Unknown && normalizedName.Contains("hdtv"))) &&
|
(result.QualityType == QualityTypes.Unknown && normalizedName.Contains("hdtv"))) &&
|
||||||
!normalizedName.Contains("mpeg"))
|
!normalizedName.Contains("mpeg"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue