瀏覽代碼

[scrobbles] Add details if we have them

Colin Powell 8 月之前
父節點
當前提交
4c2b838d7b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      vrobbler/apps/scrobbles/models.py

+ 3 - 0
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"),