From 9f02349b1eadddd317cc818da5b754014f1b597a Mon Sep 17 00:00:00 2001 From: Jean-Paul Otto Date: Thu, 24 Dec 2015 13:45:55 +0100 Subject: [PATCH] Fixed missing \" at the end of the payload string. --- Sonarr-notifications-in-Slack-using-curl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sonarr-notifications-in-Slack-using-curl.md b/Sonarr-notifications-in-Slack-using-curl.md index 401dbf6..6a4a79b 100644 --- a/Sonarr-notifications-in-Slack-using-curl.md +++ b/Sonarr-notifications-in-Slack-using-curl.md @@ -19,7 +19,7 @@ After you make the webhook it will give you a "Webhook URL" that looks something Next create a new bash script with this code: #!/bin/bash - curl -X POST --data-urlencode "payload={\"username\": \"Sonarr\", \"icon_emoji\": \":ghost:\", \"text\": \"$sonarr_eventtype: $sonarr_series_title S$sonarr_episodefile_seasonnumber E$sonarr_episodefile_episodenumbers ($sonarr_episodefile_quality)}" $1 + curl -X POST --data-urlencode "payload={\"username\": \"Sonarr\", \"icon_emoji\": \":ghost:\", \"text\": \"$sonarr_eventtype: $sonarr_series_title S$sonarr_episodefile_seasonnumber E$sonarr_episodefile_episodenumbers ($sonarr_episodefile_quality)\"}" $1 I put mine in `~/scripts/sonarr/` and named it `slack.sh`