From e7cbc4cbcfe6c3c30dea705c1de60fb474acf9a6 Mon Sep 17 00:00:00 2001 From: markus101 Date: Fri, 11 Feb 2011 00:12:44 -0800 Subject: [PATCH] Added additional priorities supported by SABnzbd. From shypike:This is the (kind of weird) priority table: TOP_PRIORITY = 2 HIGH_PRIORITY = 1 NORMAL_PRIORITY = 0 LOW_PRIORITY = -1 DEFAULT_PRIORITY = -100 PAUSED_PRIORITY = -2 -100 won't do a thing, since it means: whatever is default. --- NzbDrone.Core/Model/SabnzbdPriorityType.cs | 5 ++++- NzbDrone.Web/Models/DownloadSettingsModel.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Core/Model/SabnzbdPriorityType.cs b/NzbDrone.Core/Model/SabnzbdPriorityType.cs index bd6ea272c..a81db61a5 100644 --- a/NzbDrone.Core/Model/SabnzbdPriorityType.cs +++ b/NzbDrone.Core/Model/SabnzbdPriorityType.cs @@ -2,8 +2,11 @@ { public enum SabnzbdPriorityType { + Default = -100, + Paused = -2, Low = -1, Normal = 0, - High = 1 + High = 1, + Top = 2 } } diff --git a/NzbDrone.Web/Models/DownloadSettingsModel.cs b/NzbDrone.Web/Models/DownloadSettingsModel.cs index 559ebd3f7..157efe434 100644 --- a/NzbDrone.Web/Models/DownloadSettingsModel.cs +++ b/NzbDrone.Web/Models/DownloadSettingsModel.cs @@ -96,6 +96,6 @@ public SabnzbdPriorityType SabPriority set; } - public SelectList PrioritySelectList = new SelectList(new string[] { "Low", "Normal", "High" }); + public SelectList PrioritySelectList = new SelectList(new string[] { "Default", "Paused", "Low", "Normal", "High", "Top" }); } } \ No newline at end of file