From 88db14ac1f1cd950b8d1eac5c1e8e661d6730f5f Mon Sep 17 00:00:00 2001 From: zeroquinc Date: Sun, 6 Oct 2024 00:34:29 +0200 Subject: [PATCH] chore: add summary to movies and episodes if available in spoiler tag --- api/plex/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/plex/client.py b/api/plex/client.py index 58a4225..e4c8c75 100644 --- a/api/plex/client.py +++ b/api/plex/client.py @@ -86,9 +86,9 @@ def get_newcontent_title(self): def get_description(self): descriptions = { - 'newcontent_episode': '', - 'newcontent_season': '', - 'newcontent_movie': self.genres, + 'newcontent_episode': f"||{self.summary}||" if self.summary else '', + 'newcontent_season': f"||{self.summary}||" if self.summary else '', + 'newcontent_movie': f"||{self.summary}||\n{self.genres}" if self.summary else {self.genres} # We put || here because of how Discord handles spoilers } return descriptions.get(self.webhook_type, '')