From 989d6c55c41752b5ec906e1b92326224ef764568 Mon Sep 17 00:00:00 2001 From: Garret Date: Sat, 6 Jul 2013 10:28:32 -0700 Subject: [PATCH] Added priority setting for SABnzbd Includes ability to add nzb to queue paused. --- couchpotato/core/downloaders/sabnzbd/__init__.py | 9 +++++++++ couchpotato/core/downloaders/sabnzbd/main.py | 1 + 2 files changed, 10 insertions(+) diff --git a/couchpotato/core/downloaders/sabnzbd/__init__.py b/couchpotato/core/downloaders/sabnzbd/__init__.py index f17db9c1..e36c090b 100644 --- a/couchpotato/core/downloaders/sabnzbd/__init__.py +++ b/couchpotato/core/downloaders/sabnzbd/__init__.py @@ -34,6 +34,15 @@ config = [{ 'label': 'Category', 'description': 'The category CP places the nzb in. Like movies or couchpotato', }, + { + 'name': 'priority', + 'label': 'Priority', + 'type': 'dropdown', + 'default': '0', + 'advanced': True, + 'values': [('Paused', -2), ('Low', -1), ('Normal', 0), ('High', 1), ('Forced', 2)], + 'description': 'Priority in the SABnzbd queue. Option to add paused.', + }, { 'name': 'manual', 'default': False, diff --git a/couchpotato/core/downloaders/sabnzbd/main.py b/couchpotato/core/downloaders/sabnzbd/main.py index f2f217a1..d916db82 100644 --- a/couchpotato/core/downloaders/sabnzbd/main.py +++ b/couchpotato/core/downloaders/sabnzbd/main.py @@ -22,6 +22,7 @@ class Sabnzbd(Downloader): 'cat': self.conf('category'), 'mode': 'addurl', 'nzbname': self.createNzbName(data, movie), + 'priority': self.conf('priority'), } if filedata: