diff --git a/couchpotato/core/downloaders/nzbget/__init__.py b/couchpotato/core/downloaders/nzbget/__init__.py index 4f5afb3..50afa0b 100644 --- a/couchpotato/core/downloaders/nzbget/__init__.py +++ b/couchpotato/core/downloaders/nzbget/__init__.py @@ -34,6 +34,12 @@ config = [{ 'description': 'The category CP places the nzb in. Like movies or couchpotato', }, { + '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', diff --git a/couchpotato/core/downloaders/nzbget/main.py b/couchpotato/core/downloaders/nzbget/main.py index 0d9c52a..a799482 100644 --- a/couchpotato/core/downloaders/nzbget/main.py +++ b/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: