Add series working, Only queue enabled jobs.

This commit is contained in:
Mark McDowall 2013-03-26 17:48:07 -07:00
commit b16d85d0fc
4 changed files with 9 additions and 5 deletions

View file

@ -122,6 +122,7 @@ namespace NzbDrone.Core.Tv
repoSeries.Monitored = true;
repoSeries.QualityProfileId = qualityProfileId;
repoSeries.Title = title;
repoSeries.CleanTitle = Parser.NormalizeTitle(title);
if (qualityProfileId == 0)
repoSeries.QualityProfileId = _configService.DefaultQualityProfile;
@ -132,6 +133,9 @@ namespace NzbDrone.Core.Tv
if (airedAfter.HasValue)
repoSeries.CustomStartDate = airedAfter;
//Todo: Allow the user to set this as part of the addition process.
repoSeries.Language = "en";
_seriesRepository.Insert(repoSeries);
_eventAggregator.Publish(new SeriesAddedEvent(repoSeries));