Add trakt_url property to Media
MODIFY
plex_trakt_sync/media.py
plex_trakt_sync/media.py
@@ -32,6 +32,10 @@ def episode_number(self):
def trakt_id(self):
return self.trakt.trakt
+ @property
+ def trakt_url(self):
+ return f"https://trakt.tv/{self.trakt.media_type}/{self.trakt.trakt}"
+
@property
def show_trakt_id(self):
return self.show.trakt_id

Add trakt_url property to Media