mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Enable TTS for Discord
This commit is contained in:
parent
ffcde69352
commit
6f97036446
1 changed files with 9 additions and 9 deletions
|
@ -754,7 +754,7 @@ class DISCORD(Notifier):
|
||||||
_DEFAULT_CONFIG = {'hook': '',
|
_DEFAULT_CONFIG = {'hook': '',
|
||||||
'username': '',
|
'username': '',
|
||||||
'avatar_url': '',
|
'avatar_url': '',
|
||||||
#'tts': 0,
|
'tts': 0,
|
||||||
'incl_pmslink': 0,
|
'incl_pmslink': 0,
|
||||||
'incl_poster': 0,
|
'incl_poster': 0,
|
||||||
'incl_subject': 1
|
'incl_subject': 1
|
||||||
|
@ -774,8 +774,8 @@ class DISCORD(Notifier):
|
||||||
data['username'] = self.config['username']
|
data['username'] = self.config['username']
|
||||||
if self.config['avatar_url']:
|
if self.config['avatar_url']:
|
||||||
data['avatar_url'] = self.config['avatar_url']
|
data['avatar_url'] = self.config['avatar_url']
|
||||||
#if self.config['tts']:
|
if self.config['tts']:
|
||||||
# data['tts'] = True
|
data['tts'] = True
|
||||||
|
|
||||||
if self.config['incl_poster'] and kwargs.get('parameters'):
|
if self.config['incl_poster'] and kwargs.get('parameters'):
|
||||||
# Grab formatted metadata
|
# Grab formatted metadata
|
||||||
|
@ -846,12 +846,12 @@ class DISCORD(Notifier):
|
||||||
'name': 'discord_avatar_url',
|
'name': 'discord_avatar_url',
|
||||||
'input_type': 'text'
|
'input_type': 'text'
|
||||||
},
|
},
|
||||||
#{'label': 'TTS',
|
{'label': 'TTS',
|
||||||
# 'value': self.config['tts'],
|
'value': self.config['tts'],
|
||||||
# 'name': 'discord_tts',
|
'name': 'discord_tts',
|
||||||
# 'description': 'Send the notification using text-to-speech.',
|
'description': 'Send the notification using text-to-speech.',
|
||||||
# 'input_type': 'checkbox'
|
'input_type': 'checkbox'
|
||||||
# },
|
},
|
||||||
{'label': 'Include Poster Image',
|
{'label': 'Include Poster Image',
|
||||||
'value': self.config['incl_poster'],
|
'value': self.config['incl_poster'],
|
||||||
'name': 'discord_incl_poster',
|
'name': 'discord_incl_poster',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue