From 9cf51d403aa49caf0dd9304f58c913b188a12cb8 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 6 Dec 2016 20:07:28 -0800 Subject: [PATCH] Add link to Discord card --- plexpy/notifiers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 22309d4f..5053724f 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -817,7 +817,7 @@ class DISCORD(Notifier): plex_url = pretty_metadata.get_plex_url() poster_link = pretty_metadata.get_poster_link() caption = pretty_metadata.get_caption() - title = pretty_metadata.get_title() + title = pretty_metadata.get_title('\xc2\xb7'.decode('utf8')) subtitle = pretty_metadata.get_subtitle() # Build Discord post attachment @@ -828,10 +828,10 @@ class DISCORD(Notifier): if self.config['incl_pmslink']: attachment['url'] = plex_url - attachment['description'] += '\r\n\r\nView on Plex Web' + attachment['description'] += '\r\n\r\n[View on Plex Web](%s)' % plex_url.encode('utf-8') elif poster_link: attachment['url'] = poster_link - attachment['description'] += '\r\n\r\n' + caption + attachment['description'] += '\r\n\r\n[%s](%s)' % (caption, poster_link.encode('utf-8')) data['embeds'] = [attachment]