nzbget priority support

This commit is contained in:
Prinz23
2013-01-08 15:46:34 +01:00
committed by Ruud
parent cfaffe2bcb
commit 28ce083f48
2 changed files with 7 additions and 1 deletions

View File

@@ -33,6 +33,12 @@ config = [{
'default': 'Movies',
'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,

View File

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