New: HR WS PDTV releases will be treated as HDTV720p

This commit is contained in:
Mark McDowall
2014-07-08 22:45:19 -07:00
parent 87d15092e5
commit 2b6f908038
2 changed files with 10 additions and 0 deletions
@@ -41,6 +41,8 @@ namespace NzbDrone.Core.Parser
private static readonly Regex AnimeBlurayRegex = new Regex(@"bd(?:720|1080)|(?<=\[|\(|\s)bd(?=\s|\)|\])", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex HighDefPdtvRegex = new Regex(@"hr[-_. ]ws", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public static QualityModel ParseQuality(string name)
{
Logger.Debug("Trying to parse quality for {0}", name);
@@ -163,6 +165,12 @@ namespace NzbDrone.Core.Parser
sourceMatch.Groups["sdtv"].Success ||
sourceMatch.Groups["dsr"].Success)
{
if (HighDefPdtvRegex.IsMatch(normalizedName))
{
result.Quality = Quality.HDTV720p;
return result;
}
result.Quality = Quality.SDTV;
return result;
}