From 9986163d20a1820ce64bf2f1798e7a3dbe92c2c5 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 7 Apr 2025 16:52:16 -0400 Subject: [PATCH] [notifications] Fixes missing title --- vrobbler/apps/scrobbles/notifications.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vrobbler/apps/scrobbles/notifications.py b/vrobbler/apps/scrobbles/notifications.py index 073453c..3c6b073 100644 --- a/vrobbler/apps/scrobbles/notifications.py +++ b/vrobbler/apps/scrobbles/notifications.py @@ -8,6 +8,7 @@ class Notification(ABC): scrobble: "Scrobble" ntfy_headers: dict = {} ntfy_url: str = "" + title: str = "" def __init__(self, scrobble: "Scrobble"): self.scrobble = scrobble @@ -29,6 +30,7 @@ class NtfyNotification(Notification): super().__init__(scrobble) self.ntfy_str: str = f"{self.scrobble.media_obj}" self.click_url = self.url_tmpl.format(path=self.media_obj.get_absolute_url()) + self.title = self.media_obj.strings.verb if kwargs.get("end", False): self.click_url = self.url_tmpl.format(path=self.scrobble.finish_url) self.title = "Finish " + self.media_obj.strings.verb.lower() + "?"