1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 02:07:41 +00:00

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,10 +101,12 @@ namespace NzbDrone.Core.Tv
{
Ensure.That(() => newSeries).IsNotNull();
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);

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