From e7d379a249a3242de5dce74708bf4ea60a99a836 Mon Sep 17 00:00:00 2001
From: Aaron Gourley <aaron.gourley@gmail.com>
Date: Sat, 23 Mar 2019 14:39:14 -0400
Subject: [PATCH] Add Slack notification to post-processor

---
 headphones/postprocessor.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py
index b2f7126b8..66381dd66 100755
--- a/headphones/postprocessor.py
+++ b/headphones/postprocessor.py
@@ -588,6 +588,11 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list,
         telegram = notifiers.TELEGRAM()
         telegram.notify(pushmessage, statusmessage)
 
+    if headphones.CONFIG.SLACK_ENABLED:
+        logger.info(u"Slack request")
+        slack = notifiers.SLACK()
+        slack.notify(pushmessage, statusmessage)
+
     if headphones.CONFIG.TWITTER_ENABLED:
         logger.info(u"Sending Twitter notification")
         twitter = notifiers.TwitterNotifier()