1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

New: On Episode File Delete For Upgrade notification option

This commit is contained in:
Robin Dadswell
2021-01-30 22:54:26 +00:00
committed by GitHub
parent ec058436d3
commit 474f4bcc6d
15 changed files with 77 additions and 4 deletions
@@ -205,9 +205,12 @@ namespace NzbDrone.Core.Notifications
{
try
{
if (ShouldHandleSeries(notification.Definition, deleteMessage.EpisodeFile.Series))
if (message.Reason != MediaFiles.DeleteMediaFileReason.Upgrade || ((NotificationDefinition)notification.Definition).OnEpisodeFileDeleteForUpgrade)
{
notification.OnEpisodeFileDelete(deleteMessage);
if (ShouldHandleSeries(notification.Definition, deleteMessage.EpisodeFile.Series))
{
notification.OnEpisodeFileDelete(deleteMessage);
}
}
}
catch (Exception ex)