mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
fix migrate of outputDirectory
This commit is contained in:
parent
ac33d26ab1
commit
12fa2b6cbf
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ def migrate():
|
|||
if option == "category": # change this old format
|
||||
option = "cpsCategory"
|
||||
if option == "outputDirectory": # move this to new location format
|
||||
value = os.path.split(os.path.normpath(outputdirectory))[0]
|
||||
value = os.path.split(os.path.normpath(value))[0]
|
||||
confignew.set("Torrent", option, value)
|
||||
continue
|
||||
confignew.set(section, option, value)
|
||||
|
@ -53,7 +53,7 @@ def migrate():
|
|||
if option == "category": # change this old format
|
||||
option = "sbCategory"
|
||||
if option == "outputDirectory": # move this to new location format
|
||||
value = os.path.split(os.path.normpath(outputdirectory))[0]
|
||||
value = os.path.split(os.path.normpath(value))[0]
|
||||
confignew.set("Torrent", option, value)
|
||||
continue
|
||||
confignew.set(section, option, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue