Fixed: Allow series to be added unmonitored through the API

Closes #1404
This commit is contained in:
Mark McDowall 2016-07-27 12:08:49 -07:00
parent 5bf9b069fc
commit 1218dd255f
3 changed files with 8 additions and 3 deletions

View File

@ -9,6 +9,11 @@ namespace NzbDrone.Api.Series
{
public class SeriesResource : RestResource
{
public SeriesResource()
{
Monitored = true;
}
//Todo: Sorters should be done completely on the client
//Todo: Is there an easy way to keep IgnoreArticlesWhenSorting in sync between, Series, History, Missing?
//Todo: We should get the entire Profile instead of ID and Name separately

View File

@ -77,7 +77,6 @@ namespace NzbDrone.Core.Tv
_logger.Info("Adding Series {0} Path: [{1}]", newSeries, newSeries.Path);
newSeries.Monitored = true;
newSeries.CleanTitle = newSeries.Title.CleanSeriesTitle();
newSeries.SortTitle = SeriesTitleNormalizer.Normalize(newSeries.Title, newSeries.TvdbId);
newSeries.Added = DateTime.UtcNow;

View File

@ -189,7 +189,8 @@ var view = Marionette.ItemView.extend({
rootFolderPath : rootFolderPath,
seasonFolder : seasonFolder,
seriesType : seriesType,
addOptions : options
addOptions : options,
monitored : true
}, { silent : true });
var self = this;
@ -284,4 +285,4 @@ var view = Marionette.ItemView.extend({
AsValidatedView.apply(view);
module.exports = view;
module.exports = view;