From 9b067a437c3b7626087b175acc18b220ee07ff8f Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 31 Jul 2016 15:25:08 -0700 Subject: [PATCH] Return bool for Twitter and Facebook notify --- plexpy/notifiers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 8063b040..5e3d3e06 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -1396,9 +1396,9 @@ class TwitterNotifier(object): poster_url = metadata.get('poster_url','') if self.incl_subject: - self._send_tweet(subject + '\r\n' + message, attachment=poster_url) + return self._send_tweet(subject + '\r\n' + message, attachment=poster_url) else: - self._send_tweet(message, attachment=poster_url) + return self._send_tweet(message, attachment=poster_url) def test_notify(self): return self._send_tweet("This is a test notification from PlexPy at " + helpers.now()) @@ -2442,9 +2442,9 @@ class FacebookNotifier(object): attachment['description'] = subtitle if self.incl_subject: - self._post_facebook(subject + '\r\n' + message, attachment=attachment) + return self._post_facebook(subject + '\r\n' + message, attachment=attachment) else: - self._post_facebook(message, attachment=attachment) + return self._post_facebook(message, attachment=attachment) def test_notify(self): return self._post_facebook(u"PlexPy Notifiers :: This is a test notification from PlexPy at " + helpers.now())