From 1cf5e55e61ec686c88ee96ccb5cadaef39572ae8 Mon Sep 17 00:00:00 2001 From: markus101 Date: Mon, 31 Jan 2011 17:01:49 -0800 Subject: [PATCH] Added in Bluray 1080P Quality Type. Added additional columns for AllowedQuality --- NzbDrone.Core/Parser.cs | 7 ++++++- NzbDrone.Core/Repository/Quality/AllowedQuality.cs | 2 ++ NzbDrone.Core/Repository/Quality/QualityTypes.cs | 8 ++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core/Parser.cs b/NzbDrone.Core/Parser.cs index b3104a4f0..35c0f2096 100644 --- a/NzbDrone.Core/Parser.cs +++ b/NzbDrone.Core/Parser.cs @@ -90,7 +90,12 @@ namespace NzbDrone.Core } if (name.Contains("bluray") || name.Contains("bdrip")) - return QualityTypes.Bluray; + { + if (name.Contains("1080p")) + return QualityTypes.Bluray1080p; + + return QualityTypes.Bluray720p; + } if (name.Contains("web-dl")) return QualityTypes.WEBDL; if (name.Contains("x264") || name.Contains("h264") || name.Contains("720p")) diff --git a/NzbDrone.Core/Repository/Quality/AllowedQuality.cs b/NzbDrone.Core/Repository/Quality/AllowedQuality.cs index 3ff1663f2..c6f51eb6f 100644 --- a/NzbDrone.Core/Repository/Quality/AllowedQuality.cs +++ b/NzbDrone.Core/Repository/Quality/AllowedQuality.cs @@ -4,6 +4,8 @@ { public int Id { get; set; } public int ProfileId { get; set; } + public int Order { get; set; } + public bool MarkComplete { get; set; } public QualityTypes Quality { get; set; } } } diff --git a/NzbDrone.Core/Repository/Quality/QualityTypes.cs b/NzbDrone.Core/Repository/Quality/QualityTypes.cs index 58e2b87fc..f8142420c 100644 --- a/NzbDrone.Core/Repository/Quality/QualityTypes.cs +++ b/NzbDrone.Core/Repository/Quality/QualityTypes.cs @@ -27,8 +27,12 @@ namespace NzbDrone.Core.Repository.Quality /// WEBDL = 4, /// - /// HD File (Blu-ray Source) + /// 720P HD File (Blu-ray Source) /// - Bluray = 5 + Bluray720p = 5, + /// + /// 1080P HD File (Blu-ray Source) + /// + Bluray1080p = 6 } } \ No newline at end of file