Updated migration code to compliment the new fork names we use

This commit is contained in:
echel0n 2014-03-21 03:31:29 -07:00
commit 9942fee63d

View file

@ -60,6 +60,9 @@ def migrate():
option = "sbCategory"
if option == "failed_fork": # change this old format
option = "fork"
if "default", "failed", "failed-torrent", "auto" not in value:
value = "auto"
if option == "fork" and "default", "failed", "failed-torrent", "auto" not in value:
value = "auto"
if option == "outputDirectory": # move this to new location format
value = os.path.split(os.path.normpath(value))[0]