Skip to content

Commit 358d631

Browse files
committed
Added ntfy tag and priority support to send_webhook
1 parent c87d6d4 commit 358d631

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spotify_monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2566,7 +2566,7 @@ def build_ntfy_image(image_url: str = "") -> Optional[bytes]:
25662566

25672567

25682568
# Sends one webhook through an isolated bounded retry path that never uses Spotify retries
2569-
def send_webhook(title: str, description: str, notification_type: str = "song", force: bool = False, sleeper: Optional[Callable[[float], None]] = None, image_url: str = "") -> int:
2569+
def send_webhook(title: str, description: str, notification_type: str = "song", force: bool = False, sleeper: Optional[Callable[[float], None]] = None, image_url: str = "", ntfy_priority: int = 0, ntfy_tags: str = "") -> int:
25702570
if not force and not webhook_event_enabled(notification_type):
25712571
return 1
25722572
if not validate_webhook_url():

0 commit comments

Comments
 (0)