From 8713ebefd6c511f809e642bfd9fd658b6cde8135 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 22 May 2013 22:37:46 -0700 Subject: [PATCH] No longer creating folders for existing series --- NzbDrone.Core/Tv/SeriesService.cs | 12 +++++++----- UI/AddSeries/Existing/ImportSeriesView.js | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/NzbDrone.Core/Tv/SeriesService.cs b/NzbDrone.Core/Tv/SeriesService.cs index 84311befa..8bc8c214b 100644 --- a/NzbDrone.Core/Tv/SeriesService.cs +++ b/NzbDrone.Core/Tv/SeriesService.cs @@ -101,11 +101,13 @@ namespace NzbDrone.Core.Tv { Ensure.That(() => newSeries).IsNotNull(); - newSeries.FolderName = FileNameBuilder.CleanFilename(newSeries.Title); - newSeries.RootFolder = _rootFolderService.Get(newSeries.RootFolderId); - - _diskProvider.CreateFolder(newSeries.Path); - + if (String.IsNullOrWhiteSpace(newSeries.FolderName)) + { + newSeries.FolderName = FileNameBuilder.CleanFilename(newSeries.Title); + newSeries.RootFolder = _rootFolderService.Get(newSeries.RootFolderId); + _diskProvider.CreateFolder(newSeries.Path); + } + _logger.Info("Adding Series [{0}] Path: [{1}]", newSeries.Title, newSeries.Path); newSeries.Monitored = true; diff --git a/UI/AddSeries/Existing/ImportSeriesView.js b/UI/AddSeries/Existing/ImportSeriesView.js index 5a11be338..e28bef216 100644 --- a/UI/AddSeries/Existing/ImportSeriesView.js +++ b/UI/AddSeries/Existing/ImportSeriesView.js @@ -27,11 +27,11 @@ define([ var quality = this.ui.qualityProfile.val(); var rootFolderId = this.options.rootFolder.id; - var folder = this.options.folder.name; + var folderName = this.options.folder.name; this.model.set('qualityProfileId', quality); this.model.set('rootFolderId', rootFolderId); - this.model.set('folder', folder); + this.model.set('folderName', folderName); this.model.save(undefined, { success: function () {