Add has_media property to PlexLibraryItem
MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
@@ -195,6 +195,10 @@ def duration(self):
return '{:02}:{:02}:{:02}'.format(int(hours), int(minutes), int(seconds))
+ @cached_property
+ def has_media(self):
+ return self.type in ["movie", "episode"]
+
@cached_property
def media_type(self):
return f"{self.type}s"

Add has_media property to PlexLibraryItem