Trakt: Add collected and lookup methods
MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
@@ -168,6 +168,21 @@ def mark_watched(self, m, time):
def add_to_collection(self, m):
m.add_to_library()
+ @memoize
+ @nocache
+ @rate_limit()
+ def collected(self, tm: TVShow):
+ return pytrakt_extensions.collected(tm.trakt)
+
+ @memoize
+ @nocache
+ @rate_limit()
+ def lookup(self, tm: TVShow):
+ """
+ This lookup-table is accessible via lookup[season][episode]
+ """
+ return pytrakt_extensions.lookup_table(tm)
+
@memoize
@rate_limit()
def find_movie(self, media: PlexLibraryItem):

Trakt: Add collected and lookup methods