mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 18:28:19 +00:00
No longer creating folders for existing series
This commit is contained in:
parent
be81f772df
commit
8713ebefd6
2 changed files with 9 additions and 7 deletions
|
@ -101,10 +101,12 @@ namespace NzbDrone.Core.Tv
|
||||||
{
|
{
|
||||||
Ensure.That(() => newSeries).IsNotNull();
|
Ensure.That(() => newSeries).IsNotNull();
|
||||||
|
|
||||||
|
if (String.IsNullOrWhiteSpace(newSeries.FolderName))
|
||||||
|
{
|
||||||
newSeries.FolderName = FileNameBuilder.CleanFilename(newSeries.Title);
|
newSeries.FolderName = FileNameBuilder.CleanFilename(newSeries.Title);
|
||||||
newSeries.RootFolder = _rootFolderService.Get(newSeries.RootFolderId);
|
newSeries.RootFolder = _rootFolderService.Get(newSeries.RootFolderId);
|
||||||
|
|
||||||
_diskProvider.CreateFolder(newSeries.Path);
|
_diskProvider.CreateFolder(newSeries.Path);
|
||||||
|
}
|
||||||
|
|
||||||
_logger.Info("Adding Series [{0}] Path: [{1}]", newSeries.Title, newSeries.Path);
|
_logger.Info("Adding Series [{0}] Path: [{1}]", newSeries.Title, newSeries.Path);
|
||||||
|
|
||||||
|
|
|
@ -27,11 +27,11 @@ define([
|
||||||
|
|
||||||
var quality = this.ui.qualityProfile.val();
|
var quality = this.ui.qualityProfile.val();
|
||||||
var rootFolderId = this.options.rootFolder.id;
|
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('qualityProfileId', quality);
|
||||||
this.model.set('rootFolderId', rootFolderId);
|
this.model.set('rootFolderId', rootFolderId);
|
||||||
this.model.set('folder', folder);
|
this.model.set('folderName', folderName);
|
||||||
|
|
||||||
this.model.save(undefined, {
|
this.model.save(undefined, {
|
||||||
success: function () {
|
success: function () {
|
||||||
|
|
Loading…
Reference in a new issue