Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/98b1a7681be36199283f36c692ed10ff30ded721?style=split&whitespace=ignore-change You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed: Monitored status being reset after refresh when series is edited manually

pull/3119/head
Mark McDowall 6 years ago
parent 488967c6ef
commit 98b1a7681b

@ -169,15 +169,21 @@ namespace NzbDrone.Core.Tv
{ {
var storedSeries = GetSeries(series.Id); var storedSeries = GetSeries(series.Id);
if (updateEpisodesToMatchSeason)
{
foreach (var season in series.Seasons) foreach (var season in series.Seasons)
{ {
var storedSeason = storedSeries.Seasons.SingleOrDefault(s => s.SeasonNumber == season.SeasonNumber); var storedSeason = storedSeries.Seasons.SingleOrDefault(s => s.SeasonNumber == season.SeasonNumber);
if (storedSeason != null && season.Monitored != storedSeason.Monitored && updateEpisodesToMatchSeason) if (storedSeason != null && season.Monitored != storedSeason.Monitored)
{ {
_episodeService.SetEpisodeMonitoredBySeason(series.Id, season.SeasonNumber, season.Monitored); _episodeService.SetEpisodeMonitoredBySeason(series.Id, season.SeasonNumber, season.Monitored);
} }
} }
}
// Never update AddOptions when updating a series, keep it the same as the existing stored series.
series.AddOptions = storedSeries.AddOptions;
var updatedSeries = _seriesRepository.Update(series); var updatedSeries = _seriesRepository.Update(series);
_eventAggregator.PublishEvent(new SeriesEditedEvent(updatedSeries, storedSeries)); _eventAggregator.PublishEvent(new SeriesEditedEvent(updatedSeries, storedSeries));

Loading…
Cancel
Save