|
|
@ -1,4 +1,5 @@
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.IO;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using FluentValidation.Results;
|
|
|
|
using FluentValidation.Results;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
@ -51,6 +52,15 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|
|
|
DownloadId = message.DownloadId
|
|
|
|
DownloadId = message.DownloadId
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (message.OldMovieFiles.Any())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
payload.DeletedFiles = message.OldMovieFiles.ConvertAll(x =>
|
|
|
|
|
|
|
|
new WebhookMovieFile(x)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Path = Path.Combine(message.Movie.Path, x.RelativePath)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_proxy.SendWebhook(payload, Settings);
|
|
|
|
_proxy.SendWebhook(payload, Settings);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|