LukeHagar / plex-api-spec

An open source Plex Media Server API Specification
MIT License
35 stars 9 forks source link

Significant Quantity of Type Errors #64

Closed Funtime60 closed 3 hours ago

Funtime60 commented 3 hours ago

When trying to use the JS SDK over the past two days I've run into NUMEROUS type errors. While I initially assumed this was a result of my outdated plex server (1.40.2.8395) I cannot believe that an update would switch to only integer framerates.

I have found that the /library/onDeck endpoint returns a large number of integer strings where the schema calls for raw integers.

The schema for the /library/metadata/{ratingKey} endpoint believes that object.MediaContainer.Metadata[0].Media[0].Part[1].Stream[0].frameRate should be an integer despite the framerate being 23.976.

Funtime60 commented 3 hours ago

Upon examining the spec to try and fork & merge a fix, I've found that the spec is correct and the SDK is changing the schema. I will move over there for an issue.