mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -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'
|
||||
else:
|
||||
value = 'no'
|
||||
values[option] = value
|
||||
if option == "forceClean":
|
||||
CFG_NEW['General']['force_clean'] = value
|
||||
values.pop(option)
|
||||
|
@ -177,6 +178,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
|||
value = 1
|
||||
elif not value:
|
||||
value = 0
|
||||
values[option] = value
|
||||
# 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)):
|
||||
values.pop(option)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue