mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Fixed NZBGet save of Lidarr config. Fixes #1355
This commit is contained in:
parent
68204c6486
commit
01bb0b9bc1
1 changed files with 5 additions and 3 deletions
|
@ -347,6 +347,8 @@ class ConfigObj(configobj.ConfigObj, Section):
|
||||||
CFG_NEW[section][os.environ[envCatKey]] = {}
|
CFG_NEW[section][os.environ[envCatKey]] = {}
|
||||||
CFG_NEW[section][os.environ[envCatKey]][option] = value
|
CFG_NEW[section][os.environ[envCatKey]][option] = value
|
||||||
CFG_NEW[section][os.environ[envCatKey]]['enabled'] = 1
|
CFG_NEW[section][os.environ[envCatKey]]['enabled'] = 1
|
||||||
|
if os.environ[envCatKey] in CFG_NEW['Lidarr'].sections:
|
||||||
|
CFG_NEW['Lidarr'][envCatKey]['enabled'] = 0
|
||||||
|
|
||||||
section = "Mylar"
|
section = "Mylar"
|
||||||
envCatKey = 'NZBPO_MYCATEGORY'
|
envCatKey = 'NZBPO_MYCATEGORY'
|
||||||
|
@ -428,7 +430,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
||||||
'Torrent_NoLink', 'nzbExtractionBy', 'wait_for', 'delete_failed', 'remote_path']
|
'Torrent_NoLink', 'nzbExtractionBy', 'wait_for', 'delete_failed', 'remote_path']
|
||||||
if envCatKey in os.environ:
|
if envCatKey in os.environ:
|
||||||
for index in range(len(envKeys)):
|
for index in range(len(envKeys)):
|
||||||
key = 'NZBPO_RA{index}'.format(index=envKeys[index])
|
key = 'NZBPO_LI{index}'.format(index=envKeys[index])
|
||||||
if key in os.environ:
|
if key in os.environ:
|
||||||
option = cfgKeys[index]
|
option = cfgKeys[index]
|
||||||
value = os.environ[key]
|
value = os.environ[key]
|
||||||
|
@ -436,8 +438,8 @@ class ConfigObj(configobj.ConfigObj, Section):
|
||||||
CFG_NEW[section][os.environ[envCatKey]] = {}
|
CFG_NEW[section][os.environ[envCatKey]] = {}
|
||||||
CFG_NEW[section][os.environ[envCatKey]][option] = value
|
CFG_NEW[section][os.environ[envCatKey]][option] = value
|
||||||
CFG_NEW[section][os.environ[envCatKey]]['enabled'] = 1
|
CFG_NEW[section][os.environ[envCatKey]]['enabled'] = 1
|
||||||
if os.environ[envCatKey] in CFG_NEW['CouchPotato'].sections:
|
if os.environ[envCatKey] in CFG_NEW['HeadPhones'].sections:
|
||||||
CFG_NEW['CouchPotato'][envCatKey]['enabled'] = 0
|
CFG_NEW['HeadPhones'][envCatKey]['enabled'] = 0
|
||||||
|
|
||||||
section = "Extensions"
|
section = "Extensions"
|
||||||
envKeys = ['COMPRESSEDEXTENSIONS', 'MEDIAEXTENSIONS', 'METAEXTENSIONS']
|
envKeys = ['COMPRESSEDEXTENSIONS', 'MEDIAEXTENSIONS', 'METAEXTENSIONS']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue