Another quick fix for migrate code

This commit is contained in:
echel0n 2014-03-21 03:47:23 -07:00
commit e1a3e1b6c0

View file

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