From 6f970364462f35effa8afab19f6c8d40eb0dbfdd Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 22 Oct 2016 15:55:54 -0700 Subject: [PATCH] Enable TTS for Discord --- plexpy/notifiers.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index bd90226e..95a94022 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -754,7 +754,7 @@ class DISCORD(Notifier): _DEFAULT_CONFIG = {'hook': '', 'username': '', 'avatar_url': '', - #'tts': 0, + 'tts': 0, 'incl_pmslink': 0, 'incl_poster': 0, 'incl_subject': 1 @@ -774,8 +774,8 @@ class DISCORD(Notifier): data['username'] = self.config['username'] if self.config['avatar_url']: data['avatar_url'] = self.config['avatar_url'] - #if self.config['tts']: - # data['tts'] = True + if self.config['tts']: + data['tts'] = True if self.config['incl_poster'] and kwargs.get('parameters'): # Grab formatted metadata @@ -846,12 +846,12 @@ class DISCORD(Notifier): 'name': 'discord_avatar_url', 'input_type': 'text' }, - #{'label': 'TTS', - # 'value': self.config['tts'], - # 'name': 'discord_tts', - # 'description': 'Send the notification using text-to-speech.', - # 'input_type': 'checkbox' - # }, + {'label': 'TTS', + 'value': self.config['tts'], + 'name': 'discord_tts', + 'description': 'Send the notification using text-to-speech.', + 'input_type': 'checkbox' + }, {'label': 'Include Poster Image', 'value': self.config['incl_poster'], 'name': 'discord_incl_poster',