Wrap response to PlexLibraryItem
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -137,7 +137,8 @@ def show_sections(self):
@memoize
def fetch_item(self, key: str):
- return self.plex.library.fetchItem(f"/library/metadata/{key}")
+ media = self.plex.library.fetchItem(f"/library/metadata/{key}")
+ return PlexLibraryItem(media)
@property
@memoize

Wrap response to PlexLibraryItem