Browse Source

Add NZBVortex group support

fix #1279
pull/4201/head
Ruud 11 years ago
parent
commit
4b66b0ea07
  1. 10
      couchpotato/core/downloaders/nzbvortex.py

10
couchpotato/core/downloaders/nzbvortex.py

@ -30,7 +30,10 @@ class NZBVortex(DownloaderBase):
# Send the nzb
try:
nzb_filename = self.createFileName(data, filedata, media, unique_tag = True)
response = self.call('nzb/add', files = {'file': (nzb_filename, filedata, 'application/octet-stream')})
response = self.call('nzb/add', files = {'file': (nzb_filename, filedata, 'application/octet-stream')}, parameters = {
'name': nzb_filename,
'groupname': self.conf('group')
})
if response and response.get('result', '').lower() == 'ok':
return self.downloadReturnId(nzb_filename)
@ -193,6 +196,11 @@ config = [{
'label': 'Api Key',
},
{
'name': 'group',
'label': 'Group',
'description': 'The group CP places the nzb in. Make sure to create it in NZBVortex.',
},
{
'name': 'manual',
'default': False,
'type': 'bool',

Loading…
Cancel
Save