Skip to content

Commit

Permalink
chore: add summary to movies and episodes if available in spoiler tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroquinc committed Oct 5, 2024
1 parent a2e52a4 commit 88db14a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/plex/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, '')

Expand Down

0 comments on commit 88db14a

Please sign in to comment.