-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Providers from Plex (Tidal Music Integration, Watchlist) expose an almost identical API as Plex Servers.
However restrictions in the schema prevent these sdks from using a provider as an input.
For example one can set up an instance like so:
const discoverProvider = new PlexAPI({ accessToken: "TOKEN", serverURL: "https://discover.provider.plex.tv" });However trying to interact with the watchlist library section ID ends up with an error
> await discoverProvider.library.getLibraryItems("watchlist")
Uncaught SDKValidationError: Input validation failed
at Object.parse (file:///home/chris/.cache/deno/npm/registry.npmjs.org/@lukehagar/plexjs/0.13.2/lib/schemas.js:43:19)
at Library.getLibraryItems (file:///home/chris/.cache/deno/npm/registry.npmjs.org/@lukehagar/plexjs/0.13.2/sdk/library.js:512:35)
at <anonymous>:1:41
Looking the schema, the input is restricted to a number. Taking a peek at the code relaxing this to be a number or string should allow reading these provider libraries, which otherwise return the same API shape
Would it be possible to update the schema to allow for this possibility?
Metadata
Metadata
Assignees
Labels
No labels