Fixed an issue where shows that have no aired, episodes are not marked as monitored in Sonarr

This commit is contained in:
tidusjar 2019-08-09 23:16:00 +01:00
parent e2c92fb230
commit ad6e1fb4a1

View file

@ -346,6 +346,11 @@ namespace Ombi.Core.Senders
existingSeason.monitored = true;
seriesChanges = true;
}
// Now update the episodes that need updating
foreach (var epToUpdate in episodesToUpdate.Where(x => x.seasonNumber == season.SeasonNumber))
{
await SonarrApi.UpdateEpisode(epToUpdate, s.ApiKey, s.FullUri);
}
}
else
{