[videos] Add subtitle to notifications

This commit is contained in:
2024-11-06 00:18:16 -05:00
parent 26ebb4108d
commit a08574b359

View File

@ -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"),