Crunchy-Downloader/CRD/Utils/Notifications/Providers/ExecuteNotificationProvider.cs
Elwador ff3e28093e - Added notification service for webhooks
- Added retry delay for rate limit handling
- Added toggle to control whether auto refresh also adds missing episodes to the queue
- Added configurable delay after each dub download
- Changed encoding preset dialog to show a preview of the FFmpeg command
- Changed play sound on queue empty and execute file on completion to be handled by the notification service
- Changed shutdown PC option to disable once triggered
- Fixed crash with queue persistence
- Fixed crash with audio player
- Fixed subscription countdown on the account page
2026-05-14 21:49:57 +02:00

17 lines
580 B
C#

using System.Threading;
using System.Threading.Tasks;
namespace CRD.Utils.Notifications.Providers;
public class ExecuteNotificationProvider : INotificationProvider{
public NotificationProviderType Type => NotificationProviderType.Execute;
public Task SendAsync(NotificationProviderConfig config, NotificationEvent notificationEvent, CancellationToken cancellationToken = default){
if (string.IsNullOrWhiteSpace(config.Path)){
return Task.CompletedTask;
}
Helpers.ExecuteFile(config.Path);
return Task.CompletedTask;
}
}