1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

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 @@ public Series AddSeries(Series newSeries)
_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;