Fixed: Allow series to be added unmonitored through the API

Closes #1404
pull/4/head
Mark McDowall 9 years ago
parent 5bf9b069fc
commit 1218dd255f

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

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

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

Loading…
Cancel
Save