From 791fae7cd7b819d31ad2b304f206c26e6f01fbd5 Mon Sep 17 00:00:00 2001 From: Rob Bruce Date: Tue, 24 Aug 2010 00:04:53 -0600 Subject: [PATCH] Fixed but when saving when no new root path was entered in episode downloads. Signed-off-by: Rob Bruce --- sickbeard/webserve.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 8ebf7462ee..c1bf235256 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -636,9 +636,14 @@ def saveEpisodeDownloads(self, nzb_dir=None, sab_username=None, sab_password=Non del_root_1=None, del_root_2=None, del_root_3=None, del_root_4=None, del_root_5=None): results = [] - - root_dirs = "|".join(sickbeard.ROOT_DIR_PATHS) + "|" + os.path.normpath(root_dir.strip()) - root_labels = "|".join(sickbeard.ROOT_DIR_LABELS) + "|" + root_label.strip() + + root_dirs = "|".join(sickbeard.ROOT_DIR_PATHS) + root_labels = "|".join(sickbeard.ROOT_DIR_LABELS) + + if root_dir and root_label: + root_dirs = root_dirs + "|" + os.path.normpath(root_dir.strip()) + root_labels = root_labels + "|" + root_label.strip() + end if if not config.change_TV_DOWNLOAD_DIR(tv_download_dir): results += ["Unable to create directory " + os.path.normpath(tv_download_dir) + ", dir not changed."]