Add media_type property to PlexLibraryItem
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -25,6 +25,14 @@ def type(self):
if type(self.item) is Show:
return "shows"
+ @property
+ @memoize
+ def media_type(self):
+ if type(self.item) is Movie:
+ return "movie"
+ if type(self.item) is Show:
+ return "show"
+
@property
@memoize
def provider(self):

Add media_type property to PlexLibraryItem