Add search api to plex
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -178,6 +178,12 @@ def reload_item(self, pm):
self.fetch_item.cache_clear()
return self.fetch_item(pm.item.ratingKey)
+ @memoize
+ def search(self, title: str, **kwargs):
+ result = self.plex.library.search(title, **kwargs)
+ for media in result:
+ yield PlexLibraryItem(media)
+
@property
@memoize
@nocache

Add search api to plex