mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
fix remote_path migration. fixes #414
This commit is contained in:
parent
330ef6a23a
commit
19197b13d0
1 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
||||||
value = 'hard'
|
value = 'hard'
|
||||||
else:
|
else:
|
||||||
value = 'no'
|
value = 'no'
|
||||||
|
values[option] = value
|
||||||
if option == "forceClean":
|
if option == "forceClean":
|
||||||
CFG_NEW['General']['force_clean'] = value
|
CFG_NEW['General']['force_clean'] = value
|
||||||
values.pop(option)
|
values.pop(option)
|
||||||
|
@ -177,6 +178,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
||||||
value = 1
|
value = 1
|
||||||
elif not value:
|
elif not value:
|
||||||
value = 0
|
value = 0
|
||||||
|
values[option] = value
|
||||||
# remove any options that we no longer need so they don't migrate into our new config
|
# remove any options that we no longer need so they don't migrate into our new config
|
||||||
if not list(ConfigObj.find_key(CFG_NEW, option)):
|
if not list(ConfigObj.find_key(CFG_NEW, option)):
|
||||||
values.pop(option)
|
values.pop(option)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue