From 4c2b838d7b006e18cecf18696ccb5d3ef46ec694 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 5 Nov 2024 16:43:40 -0500 Subject: [PATCH] [scrobbles] Add details if we have them --- vrobbler/apps/scrobbles/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index bb57972..d6afd31 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -1188,6 +1188,9 @@ class Scrobble(TimeStampedModel): ).first() if profile.ntfy_enabled and profile.ntfy_url: # TODO allow prority and tags to be configured in the profile + notify_str = f"{scrobble.media_obj}" + if scrobble.log.get("details"): + notify_str += f" - {scrobble.log.get('details')}" requests.post( profile.ntfy_url, data=f"{scrobble.media_obj}".encode(encoding="utf-8"),