From 688d28b5ea2360769bd58504fc8fb905521ce676 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 5 Oct 2019 23:26:41 -0700 Subject: [PATCH] Limit Discord description to 2048 characters --- plexpy/notifiers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 0fae5f32..9b7e25df 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -1198,7 +1198,7 @@ class DISCORD(Notifier): attachment['image'] = {'url': poster_url} 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 = [] if provider_link: