mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 15:37:55 +02: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user