Add is_episode property to Media
MODIFY
plex_trakt_sync/media.py
plex_trakt_sync/media.py
@@ -50,6 +50,10 @@ def show_trakt_id(self):
def is_movie(self):
return self.plex.type == "movie"
+ @property
+ def is_episode(self):
+ return self.plex.type == "episode"
+
@property
def is_collected(self):
if self.is_movie:

Add is_episode property to Media