From efecb8843cc1ec85ed89870d5ab8c7026a5d15b3 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Mon, 8 Apr 2024 15:22:12 -0700 Subject: [PATCH] Updated wording of apprise notification --- lib/pinchflat/notifications/source_notifications.ex | 4 ++-- .../notifications/source_notifications_test.exs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/pinchflat/notifications/source_notifications.ex b/lib/pinchflat/notifications/source_notifications.ex index 9ecb5c9..e39841d 100644 --- a/lib/pinchflat/notifications/source_notifications.ex +++ b/lib/pinchflat/notifications/source_notifications.ex @@ -34,8 +34,8 @@ defmodule Pinchflat.Notifications.SourceNotifications do def send_new_media_notification(servers, source, changed_count) do opts = [ - title: "[Pinchflat] New media found!", - body: "Found #{changed_count} new media item(s) for #{source.custom_name}. Working on downloading them now!" + title: "[Pinchflat] New media found", + body: "Found #{changed_count} new media item(s) for #{source.custom_name}. Downloading them now" ] case backend_runner().run(servers, opts) do diff --git a/test/pinchflat/notifications/source_notifications_test.exs b/test/pinchflat/notifications/source_notifications_test.exs index 788ae7f..0bf897e 100644 --- a/test/pinchflat/notifications/source_notifications_test.exs +++ b/test/pinchflat/notifications/source_notifications_test.exs @@ -19,8 +19,8 @@ defmodule Pinchflat.Notifications.SourceNotificationsTest do assert servers == @apprise_servers assert opts == [ - title: "[Pinchflat] New media found!", - body: "Found 1 new media item(s) for #{source.custom_name}. Working on downloading them now!" + title: "[Pinchflat] New media found", + body: "Found 1 new media item(s) for #{source.custom_name}. Downloading them now" ] {:ok, ""} @@ -38,8 +38,8 @@ defmodule Pinchflat.Notifications.SourceNotificationsTest do assert servers == @apprise_servers assert opts == [ - title: "[Pinchflat] New media found!", - body: "Found 1 new media item(s) for #{source.custom_name}. Working on downloading them now!" + title: "[Pinchflat] New media found", + body: "Found 1 new media item(s) for #{source.custom_name}. Downloading them now" ] {:ok, ""} @@ -78,8 +78,8 @@ defmodule Pinchflat.Notifications.SourceNotificationsTest do assert servers == @apprise_servers assert opts == [ - title: "[Pinchflat] New media found!", - body: "Found 1 new media item(s) for #{source.custom_name}. Working on downloading them now!" + title: "[Pinchflat] New media found", + body: "Found 1 new media item(s) for #{source.custom_name}. Downloading them now" ] {:ok, ""}