Add plex_history wrapper to Media
MODIFY
plex_trakt_sync/media.py
plex_trakt_sync/media.py
@@ -97,6 +97,9 @@ def trakt_rate(self):
def plex_rate(self):
self.plex_api.rate(self.plex.item, self.trakt_rating)
+ def plex_history(self, **kwargs):
+ yield from self.plex_api.history(self.plex.item, **kwargs)
+
def __str__(self):
return str(self.plex)

Add plex_history wrapper to Media