Skip to content

Commit

Permalink
Fixed but when saving when no new root path was entered in episode do…
Browse files Browse the repository at this point in the history
…wnloads.

Signed-off-by: Rob Bruce <rob.bruce70@gmail.com>
  • Loading branch information
dny238 committed Aug 24, 2010
1 parent 38b57e3 commit 791fae7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions sickbeard/webserve.py
Expand Up @@ -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."]
Expand Down

0 comments on commit 791fae7

Please sign in to comment.