mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-20 10:35:32 +01:00
torznab config issues
This commit is contained in:
@@ -552,7 +552,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Torznab API</label>
|
||||
<input type="text" name="Torznab_api${torznab_number}" value="${torznab[1]}" size="36">
|
||||
<input type="text" name="torznab_api${torznab_number}" value="${torznab[1]}" size="36">
|
||||
</div>
|
||||
<div class="row checkbox">
|
||||
<input id="torznab_enabled" type="checkbox" name="torznab_enabled${torznab_number}" value="1" ${torznab_enabled} /><label>Enabled</label>
|
||||
|
||||
@@ -141,10 +141,6 @@ _CONFIG_DEFINITIONS = {
|
||||
'NEWZNAB_APIKEY': (str, 'Newznab', ''),
|
||||
'NEWZNAB_ENABLED': (int, 'Newznab', 1),
|
||||
'NEWZNAB_HOST': (str, 'Newznab', ''),
|
||||
'TORZNAB': (int, 'Torznab', 0),
|
||||
'TORZNAB_APIKEY': (str, 'Torznab', ''),
|
||||
'TORZNAB_ENABLED': (int, 'Torznab', 1),
|
||||
'TORZNAB_HOST': (str, 'Torznab', ''),
|
||||
'NMA_APIKEY': (str, 'NMA', ''),
|
||||
'NMA_ENABLED': (int, 'NMA', 0),
|
||||
'NMA_ONSNATCH': (int, 'NMA', 0),
|
||||
@@ -232,6 +228,10 @@ _CONFIG_DEFINITIONS = {
|
||||
'TORRENTBLACKHOLE_DIR': (str, 'General', ''),
|
||||
'TORRENT_DOWNLOADER': (int, 'General', 0),
|
||||
'TORRENT_REMOVAL_INTERVAL': (int, 'General', 720),
|
||||
'TORZNAB': (int, 'Torznab', 0),
|
||||
'TORZNAB_APIKEY': (str, 'Torznab', ''),
|
||||
'TORZNAB_ENABLED': (int, 'Torznab', 1),
|
||||
'TORZNAB_HOST': (str, 'Torznab', ''),
|
||||
'TRANSMISSION_HOST': (str, 'Transmission', ''),
|
||||
'TRANSMISSION_PASSWORD': (str, 'Transmission', ''),
|
||||
'TRANSMISSION_USERNAME': (str, 'Transmission', ''),
|
||||
|
||||
@@ -1361,13 +1361,15 @@ class WebInterface(object):
|
||||
del kwargs[extra]
|
||||
|
||||
headphones.CONFIG.EXTRAS = ','.join(str(n) for n in temp_extras_list)
|
||||
|
||||
headphones.CONFIG.clear_extra_newznabs()
|
||||
headphones.CONFIG.clear_extra_torznabs()
|
||||
|
||||
headphones.CONFIG.process_kwargs(kwargs)
|
||||
|
||||
for extra_newznab in extra_newznabs:
|
||||
headphones.CONFIG.add_extra_newznab(extra_newznab)
|
||||
|
||||
headphones.CONFIG.clear_extra_torznabs()
|
||||
headphones.CONFIG.process_kwargs(kwargs)
|
||||
for extra_torznab in extra_torznabs:
|
||||
headphones.CONFIG.add_extra_torznab(extra_torznab)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user