Browse Source

nzbget priority support

pull/1244/merge
Prinz23 13 years ago
committed by Ruud
parent
commit
28ce083f48
  1. 6
      couchpotato/core/downloaders/nzbget/__init__.py
  2. 2
      couchpotato/core/downloaders/nzbget/main.py

6
couchpotato/core/downloaders/nzbget/__init__.py

@ -34,6 +34,12 @@ config = [{
'description': 'The category CP places the nzb in. Like <strong>movies</strong> or <strong>couchpotato</strong>',
},
{
'name': 'priority',
'default': '0',
'type': 'dropdown',
'values': [('Very Low', -100), ('Low', -50), ('Normal', 0), ('High', 50), ('Very High', 100)]
},
{
'name': 'manual',
'default': 0,
'type': 'bool',

2
couchpotato/core/downloaders/nzbget/main.py

@ -44,7 +44,7 @@ class NZBGet(Downloader):
log.error('Protocol Error: %s', e)
return False
if rpc.append(nzb_name, self.conf('category'), False, standard_b64encode(filedata.strip())):
if rpc.append(nzb_name, self.conf('category'), int(self.conf('priority')), False, standard_b64encode(filedata.strip())):
log.info('NZB sent successfully to NZBGet')
return True
else:

Loading…
Cancel
Save