mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Limit Discord description to 2048 characters
This commit is contained in:
parent
27d2c7b078
commit
688d28b5ea
1 changed files with 1 additions and 1 deletions
|
@ -1198,7 +1198,7 @@ class DISCORD(Notifier):
|
||||||
attachment['image'] = {'url': poster_url}
|
attachment['image'] = {'url': poster_url}
|
||||||
|
|
||||||
if self.config['incl_description'] or pretty_metadata.media_type in ('artist', 'album', 'track'):
|
if self.config['incl_description'] or pretty_metadata.media_type in ('artist', 'album', 'track'):
|
||||||
attachment['description'] = description
|
attachment['description'] = description[:2045] + (description[2045:] and '...')
|
||||||
|
|
||||||
fields = []
|
fields = []
|
||||||
if provider_link:
|
if provider_link:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue