mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Fixed some conditional checks for NZBGet enviroment strings
This commit is contained in:
parent
2c10a41397
commit
f318abc872
1 changed files with 5 additions and 5 deletions
|
@ -138,7 +138,7 @@ class migratecfg:
|
||||||
if os.environ.has_key(key):
|
if os.environ.has_key(key):
|
||||||
option = cfgKeys[index]
|
option = cfgKeys[index]
|
||||||
value = os.environ[key]
|
value = os.environ[key]
|
||||||
if confignew[section].has_key(os.environ[envCatKey]) and option not in confignew[section].sections:
|
if os.environ[envCatKey] in confignew[section].sections:
|
||||||
confignew[section][envCatKey][option] = value
|
confignew[section][envCatKey][option] = value
|
||||||
|
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ class migratecfg:
|
||||||
if os.environ.has_key(key):
|
if os.environ.has_key(key):
|
||||||
option = cfgKeys[index]
|
option = cfgKeys[index]
|
||||||
value = os.environ[key]
|
value = os.environ[key]
|
||||||
if confignew[section].has_key(os.environ[envCatKey]) and option not in confignew[section].sections:
|
if os.environ[envCatKey] in confignew[section].sections:
|
||||||
confignew[section][envCatKey][option] = value
|
confignew[section][envCatKey][option] = value
|
||||||
|
|
||||||
section = "HeadPhones"
|
section = "HeadPhones"
|
||||||
|
@ -163,7 +163,7 @@ class migratecfg:
|
||||||
if os.environ.has_key(key):
|
if os.environ.has_key(key):
|
||||||
option = cfgKeys[index]
|
option = cfgKeys[index]
|
||||||
value = os.environ[key]
|
value = os.environ[key]
|
||||||
if confignew[section].has_key(os.environ[envCatKey]) and option not in confignew[section].sections:
|
if os.environ[envCatKey] in confignew[section].sections:
|
||||||
confignew[section][envCatKey][option] = value
|
confignew[section][envCatKey][option] = value
|
||||||
|
|
||||||
section = "Mylar"
|
section = "Mylar"
|
||||||
|
@ -175,7 +175,7 @@ class migratecfg:
|
||||||
if os.environ.has_key(key):
|
if os.environ.has_key(key):
|
||||||
option = cfgKeys[index]
|
option = cfgKeys[index]
|
||||||
value = os.environ[key]
|
value = os.environ[key]
|
||||||
if confignew[section].has_key(os.environ[envCatKey]) and option not in confignew[section].sections:
|
if os.environ[envCatKey] in confignew[section].sections:
|
||||||
confignew[section][envCatKey][option] = value
|
confignew[section][envCatKey][option] = value
|
||||||
|
|
||||||
section = "Gamez"
|
section = "Gamez"
|
||||||
|
@ -187,7 +187,7 @@ class migratecfg:
|
||||||
if os.environ.has_key(key):
|
if os.environ.has_key(key):
|
||||||
option = cfgKeys[index]
|
option = cfgKeys[index]
|
||||||
value = os.environ[key]
|
value = os.environ[key]
|
||||||
if confignew[section].has_key(os.environ[envCatKey]) and option not in confignew[section].sections:
|
if os.environ[envCatKey] in confignew[section].sections:
|
||||||
confignew[section][envCatKey][option] = value
|
confignew[section][envCatKey][option] = value
|
||||||
|
|
||||||
section = "Extensions"
|
section = "Extensions"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue