From a08574b3590f6f4c452baa61fd0d9d292cb61864 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 6 Nov 2024 00:18:16 -0500 Subject: [PATCH] [videos] Add subtitle to notifications --- vrobbler/apps/scrobbles/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index adbc76b..6e29632 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -1191,6 +1191,8 @@ class Scrobble(TimeStampedModel): notify_str = f"{scrobble.media_obj}" if scrobble.log and scrobble.log.get("description"): notify_str += f" - {scrobble.log.get('description')}" + if scrobble.media_obj.subtitle: + notify_str += f" - {scrobble.media_obj.subtitle}" requests.post( profile.ntfy_url, data=notify_str.encode(encoding="utf-8"),