mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Added UpdateSeries to SeriesProvider.
Edit now works for Series, AJAX save. Fixed Adding new series to use the DefaultQualityProfile as the QualityProfileId value.
This commit is contained in:
parent
d3b7d199ab
commit
dbca3a1974
6 changed files with 83 additions and 79 deletions
|
@ -108,7 +108,7 @@ namespace NzbDrone.Core.Providers
|
|||
repoSeries.Path = path;
|
||||
repoSeries.CleanTitle = Parser.NormalizeTitle(series.SeriesName);
|
||||
repoSeries.Monitored = true; //New shows should be monitored
|
||||
repoSeries.QualityProfileId = Convert.ToInt32(_config.GetValue("Quality", 1, true));
|
||||
repoSeries.QualityProfileId = Convert.ToInt32(_config.GetValue("DefaultQualityProfile", "1", true));
|
||||
_sonioRepo.Add(repoSeries);
|
||||
}
|
||||
|
||||
|
@ -117,6 +117,11 @@ namespace NzbDrone.Core.Providers
|
|||
return _sonioRepo.Single<Series>(s => s.CleanTitle == cleanTitle);
|
||||
}
|
||||
|
||||
public void UpdateSeries(Series series)
|
||||
{
|
||||
_sonioRepo.Update(series);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Static Helpers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue