Add plex_url property to Media
@@ -32,6 +32,10 @@ def episode_number(self):
def trakt_id(self):
return self.trakt.trakt
+ @property
+ def plex_url(self):
+ return self.plex_api.media_url(self.plex)
+
@property
def trakt_url(self):
return f"https://trakt.tv/{self.trakt.media_type}/{self.trakt.trakt}"
