Fixed: WEBDL-480p being detected as WEBDL-720p

Fixed Newznab DNS hostname test, finally!
This commit is contained in:
Mark McDowall 2012-12-16 01:08:02 -08:00
commit 8f1f96a573
5 changed files with 31 additions and 9 deletions

View file

@ -295,7 +295,20 @@ namespace NzbDrone.Core
result.Quality = QualityTypes.WEBDL1080p;
return result;
}
result.Quality = QualityTypes.WEBDL720p;
if (normalizedName.Contains("720p"))
{
result.Quality = QualityTypes.WEBDL720p;
return result;
}
if(name.Contains("[WEBDL]"))
{
result.Quality = QualityTypes.WEBDL720p;
return result;
}
result.Quality = QualityTypes.WEBDL480p;
return result;
}
if (normalizedName.Contains("x264") || normalizedName.Contains("h264") || normalizedName.Contains("720p"))