Browse Source

Added priority setting for SABnzbd

Includes ability to add nzb to queue paused.
pull/1921/head
Garret 12 years ago
parent
commit
989d6c55c4
  1. 9
      couchpotato/core/downloaders/sabnzbd/__init__.py
  2. 1
      couchpotato/core/downloaders/sabnzbd/main.py

9
couchpotato/core/downloaders/sabnzbd/__init__.py

@ -35,6 +35,15 @@ config = [{
'description': 'The category CP places the nzb in. Like <strong>movies</strong> or <strong>couchpotato</strong>',
},
{
'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,
'type': 'bool',

1
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:

Loading…
Cancel
Save