Skip to content

Commit

Permalink
nicer sabnzbdsettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mar2zz committed Dec 28, 2011
1 parent 3b4ef5f commit 555c9f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions lib/modules.py
Expand Up @@ -103,9 +103,19 @@
'delay': 0,
'settings': [
{
'key': 'sabnzbd_url',
'value': 'http://<hostname>:<port>/api?apikey=<apikeygoeshere>',
'description': 'SABnzbd URL',
'key': 'sabnzbd_host',
'value': '',
'description': 'Hostname',
},
{
'key': 'sabnzbd_port',
'value': '',
'description': 'Port',
},
{
'key': 'sabnzbd_api',
'value': '',
'description': 'Api Key',
},
]
},
Expand Down
2 changes: 1 addition & 1 deletion modules/sabnzbd.py
Expand Up @@ -8,7 +8,7 @@
@app.route('/xhr/sabnzbd')
@requires_auth
def xhr_sabnzbd():
SABNZBD_URL = get_setting_value('sabnzbd_url')
SABNZBD_URL = 'http://%s:%s/api?apikey=%s' % (get_setting_value('sabnzbd_host'), get_setting_value('sabnzbd_port'), get_setting_value('sabnzbd_api'))

try:
if SABNZBD_URL == None:
Expand Down

0 comments on commit 555c9f8

Please sign in to comment.