mirror of https://github.com/Sonarr/Sonarr
No longer creating folders for existing series
This commit is contained in:
parent
be81f772df
commit
8713ebefd6
|
@ -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;
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue