diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index f92bb4f8..25bfeab8 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -2686,6 +2686,7 @@ class PUSHOVER(Notifier): 'priority': 0, 'sound': '', 'incl_url': 1, + 'incl_subject': 1, 'incl_poster': 0, 'movie_provider': '', 'tv_provider': '', @@ -2695,13 +2696,15 @@ class PUSHOVER(Notifier): def agent_notify(self, subject='', body='', action='', **kwargs): data = {'token': self.config['api_token'], 'user': self.config['key'], - 'title': subject.encode("utf-8"), 'message': body.encode("utf-8"), 'sound': self.config['sound'], 'html': self.config['html_support'], 'priority': self.config['priority'], 'timestamp': int(time.time())} + if self.config['incl_subject']: + data['title'] = subject.encode("utf-8") + headers = {'Content-type': 'application/x-www-form-urlencoded'} files = {} @@ -2802,6 +2805,12 @@ class PUSHOVER(Notifier): 'description': 'Include a supplementary URL with the notifications.', 'input_type': 'checkbox' }, + {'label': 'Include Subject Line', + 'value': self.config['incl_subject'], + 'name': 'pushover_incl_subject', + 'description': 'Include the subject line with the notifications.', + 'input_type': 'checkbox' + }, {'label': 'Include Poster Image', 'value': self.config['incl_poster'], 'name': 'pushover_incl_poster',