No longer creating folders for existing series

This commit is contained in:
Mark McDowall 2013-05-22 22:37:46 -07:00
parent be81f772df
commit 8713ebefd6
2 changed files with 9 additions and 7 deletions

View File

@ -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;

View File

@ -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 () {