Skip to content

Commit

Permalink
fix: rename tmdb_id
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroquinc committed Oct 30, 2024
1 parent e6880ee commit 867d345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/plex/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def extract_details(self):
fields = [
'media_type', 'year', 'title', 'summary', 'quality', 'air_date', 'genres',
'release_date', 'season_num00', 'episode_num00', 'episode_count', 'poster_url',
'imdb_url', 'tvdb_url', 'trakt_url', 'plex_url', 'tmdb_url', 'tmdb_id', 'critic_rating', 'audience_rating',
'imdb_url', 'tvdb_url', 'trakt_url', 'plex_url', 'tmdb_url', 'tmdb_id_plex', 'critic_rating', 'audience_rating',
'rating', 'username', 'platform', 'player', 'product', 'video_decision',
'remaining_time', 'duration_time', 'server_name', 'webhook_type'
]
Expand Down Expand Up @@ -99,7 +99,7 @@ def embed_for_newcontent(self, color):
elif self.webhook_type == 'newcontent_season':
embed.add_field(name="Episodes", value=f"{self.episode_count}", inline=False)
elif self.webhook_type == 'newcontent_movie':
embed.add_field(name="Links", value=f"[IMDb]({self.imdb_url}) • [TMDB]({self.tmdb_url}) • [Trakt](https://trakt.tv/search/imdb?query={self.tmdb_id})")
embed.add_field(name="Links", value=f"[IMDb]({self.imdb_url}) • [TMDB]({self.tmdb_url}) • [Trakt](https://trakt.tv/search/imdb?query={self.tmdb_id_plex})")
embed.set_footer(text=f"{self.genres}{self.format_duration_time()}")
embed.set_author(name=f"New {self.media_type.capitalize()} added to Plex", icon_url=PLEX_ICON)
return embed
Expand Down

0 comments on commit 867d345

Please sign in to comment.