1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Fixed: Parsing of resolution in TVRips

Fixes #2281
This commit is contained in:
Mark McDowall
2017-11-21 18:33:25 -08:00
parent 9c68c89f24
commit 3d8cd9616e
2 changed files with 16 additions and 2 deletions
+13 -1
View File
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
@@ -213,6 +213,18 @@ namespace NzbDrone.Core.Parser
sourceMatch.Groups["dsr"].Success ||
sourceMatch.Groups["tvrip"].Success)
{
if (resolution == Resolution.R1080p || normalizedName.Contains("1080p"))
{
result.Quality = Quality.HDTV1080p;
return result;
}
if (resolution == Resolution.R720p || normalizedName.Contains("720p"))
{
result.Quality = Quality.HDTV720p;
return result;
}
if (HighDefPdtvRegex.IsMatch(normalizedName))
{
result.Quality = Quality.HDTV720p;