Hi All
I am starting to put together an agent partially for my own python learning and mainly to give something back to the plex community.
I am having some confusion over the update method and the metadata object that is passed to it.
According to the 2.1.1 docs this object should contain existing data that is attributed to the item or a new empty object if this is the first access.
Ok so Scenario is
- My agent is Primary (Movies) with local media as the only secondary provider
- Agent order is local media first, my agent second in the agent settings screen
- Local media agent populates the metadata section for an item (Reading the github source for videohelper) from the tags if any.
- Metadata from local media agent then passed to my agent should then contain the contributed data from local media as described in the docs
- Metadata provided to my agent is completely empty (was expecting data from localmedia agent including title, roles, etc)
- I have found that if I set metadata items in my agent they do persist but are only visible if the primary agent is the first in the agent order list. This is aside from 5. and just an observation that the data set in an agent is ONLY available to that agent. which is in conflict with the docs.
So my question is how does the primary agent vet the additional metadata provided by all the agents it accepts data from?
ie if a particular piece of data is deemed unnecessary or needs to be altered by the primary agent and is updated this should then be saved as the primary agent specifes shouldnt it?.
Is this a bug?
Additionally some data set by the local media agent does not exist to edit in the web interface.
Example
When adding a movie (mp4) if the arttist tag is set, the artists get added to the roles attrib of the metadata object (this is undocumented and I only found it by reading the source)
This is then shown on the items details page as “Cast”
There is no details in any of the edit tabs for the “Cast” or roles.
Is current documentation for the Plex agent and associated API available (post 2.1.1)?
The 2.1.1 Docs are incomplete and dont match the source for what metadata objects are available on github so is there any newer versions out there?
Please let me know if this needs more clarification?
Any help or pointers or “yes this is a bug” greatly appreciated
Thanks