diff --git a/MediaBrowser.Plugins.SmtpNotifications/Api/ServerApiEntryPoints.cs b/MediaBrowser.Plugins.SmtpNotifications/Api/ServerApiEntryPoints.cs index e270ddf..b8afb5b 100644 --- a/MediaBrowser.Plugins.SmtpNotifications/Api/ServerApiEntryPoints.cs +++ b/MediaBrowser.Plugins.SmtpNotifications/Api/ServerApiEntryPoints.cs @@ -18,17 +18,19 @@ public class TestNotification : IReturnVoid public class ServerApiEndpoints : IService { private readonly IUserManager _userManager; - private readonly ILogger _logger; + private readonly ILogger _logger; + private readonly ILogger _notifierLogger; - public ServerApiEndpoints(IUserManager userManager, ILogger logger) + public ServerApiEndpoints(IUserManager userManager, ILogger logger, ILogger notifierLogger) { _userManager = userManager; _logger = logger; + _notifierLogger = notifierLogger; } public Task Post(TestNotification request) { - return new Notifier(_logger).SendNotification(new UserNotification + return new Notifier(_notifierLogger).SendNotification(new UserNotification { Date = DateTime.UtcNow, Description = "This is a test notification from Jellyfin Server", diff --git a/MediaBrowser.Plugins.SmtpNotifications/MediaBrowser.Plugins.SmtpNotifications.csproj b/MediaBrowser.Plugins.SmtpNotifications/MediaBrowser.Plugins.SmtpNotifications.csproj index 291b308..94f8f72 100644 --- a/MediaBrowser.Plugins.SmtpNotifications/MediaBrowser.Plugins.SmtpNotifications.csproj +++ b/MediaBrowser.Plugins.SmtpNotifications/MediaBrowser.Plugins.SmtpNotifications.csproj @@ -2,8 +2,8 @@ netstandard2.1 - 6.0.0.0 - 6.0.0.0 + 7.0.0.0 + 7.0.0.0 @@ -12,7 +12,8 @@ - + + \ No newline at end of file diff --git a/MediaBrowser.Plugins.SmtpNotifications/Notifier.cs b/MediaBrowser.Plugins.SmtpNotifications/Notifier.cs index de624bf..01d9f31 100644 --- a/MediaBrowser.Plugins.SmtpNotifications/Notifier.cs +++ b/MediaBrowser.Plugins.SmtpNotifications/Notifier.cs @@ -4,6 +4,7 @@ using System.Net.Mail; using System.Threading; using System.Threading.Tasks; +using Jellyfin.Data.Entities; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Notifications; using MediaBrowser.Plugins.SmtpNotifications.Configuration; @@ -13,9 +14,9 @@ namespace MediaBrowser.Plugins.SmtpNotifications { public class Notifier : INotificationService { - private readonly ILogger _logger; + private readonly ILogger _logger; - public Notifier(ILogger logger) + public Notifier(ILogger logger) { _logger = logger; } diff --git a/build.yaml b/build.yaml index 0226032..11c8baf 100644 --- a/build.yaml +++ b/build.yaml @@ -1,8 +1,8 @@ --- name: "Email" guid: "cfa0f7f4-4155-4d71-849b-d6598dc4c5bb" -version: "6.0.0.0" -targetAbi: "10.5.0.0" +version: "7.0.0.0" +targetAbi: "10.6.0.0" owner: "jellyfin" overview: "Send SMTP email notifications" description: "Send SMTP email notifications"