Add NZBVortex group support

fix #1279
This commit is contained in:
Ruud committed 2014-09-23 22:36:01 +02:00
1 parent 543226450c
commit 4b66b0ea07
1 file changed
+9 -1
+9 -1
View File
@@ -30,7 +30,10 @@ class NZBVortex(DownloaderBase):
# Send the nzb # Send the nzb
try: try:
nzb_filename = self.createFileName(data, filedata, media, unique_tag = True) 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': if response and response.get('result', '').lower() == 'ok':
return self.downloadReturnId(nzb_filename) return self.downloadReturnId(nzb_filename)
@@ -192,6 +195,11 @@ config = [{
'name': 'api_key', 'name': 'api_key',
'label': 'Api Key', 'label': 'Api Key',
}, },
{
'name': 'group',
'label': 'Group',
'description': 'The group CP places the nzb in. Make sure to create it in NZBVortex.',
},
{ {
'name': 'manual', 'name': 'manual',
'default': False, 'default': False,