Add media_type property to PlexLibraryItem
@@ -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):
