From e1a3e1b6c071b3535466c086f5d43f26a0279679 Mon Sep 17 00:00:00 2001 From: echel0n Date: Fri, 21 Mar 2014 03:47:23 -0700 Subject: [PATCH] Another quick fix for migrate code --- autoProcess/migratecfg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoProcess/migratecfg.py b/autoProcess/migratecfg.py index a7b5fd50..d1e3e20b 100644 --- a/autoProcess/migratecfg.py +++ b/autoProcess/migratecfg.py @@ -60,9 +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: + if value not in ["default", "failed", "failed-torrent", "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" if option == "outputDirectory": # move this to new location format value = os.path.split(os.path.normpath(value))[0]