mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-25 01:02:05 +00:00
Fixed an issue where large 1080i MPEG HDTV rips were being considered SDTV, they now get caught as Unknown.
This commit is contained in:
parent
ad260c54cc
commit
2ad200e743
2 changed files with 2 additions and 1 deletions
|
@ -99,6 +99,7 @@ public void PathParse_tests(string path, int season, int episode)
|
||||||
[TestCase("S07E23 .avi ", QualityTypes.SDTV)]
|
[TestCase("S07E23 .avi ", QualityTypes.SDTV)]
|
||||||
[TestCase("WEEDS.S03E01-06.DUAL.XviD.Bluray.AC3.-HELLYWOOD.avi", QualityTypes.DVD)]
|
[TestCase("WEEDS.S03E01-06.DUAL.XviD.Bluray.AC3.-HELLYWOOD.avi", QualityTypes.DVD)]
|
||||||
[TestCase("WEEDS.S03E01-06.DUAL.Bluray.AC3.-HELLYWOOD.avi", QualityTypes.Bluray720p)]
|
[TestCase("WEEDS.S03E01-06.DUAL.Bluray.AC3.-HELLYWOOD.avi", QualityTypes.Bluray720p)]
|
||||||
|
[TestCase("The Voice S01E11 The Finals 1080i HDTV DD5.1 MPEG2-TrollHD", QualityTypes.Unknown)]
|
||||||
public void quality_parse(string postTitle, object quality)
|
public void quality_parse(string postTitle, object quality)
|
||||||
{
|
{
|
||||||
var result = Parser.ParseQuality(postTitle);
|
var result = Parser.ParseQuality(postTitle);
|
||||||
|
|
|
@ -311,7 +311,7 @@ internal static Quality ParseQuality(string name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (normalizedName.Contains("sdtv") || (result.QualityType == QualityTypes.Unknown && normalizedName.Contains("hdtv")))
|
if ((normalizedName.Contains("sdtv") || (result.QualityType == QualityTypes.Unknown && normalizedName.Contains("hdtv"))) && !normalizedName.Contains("mpeg"))
|
||||||
{
|
{
|
||||||
result.QualityType = QualityTypes.SDTV;
|
result.QualityType = QualityTypes.SDTV;
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue