python-plexapi
python-plexapi copied to clipboard
Add a script that checks for new attributes
In the xml as a test so we get notified when plex add something that we don't have. Add greedy params to reload see we get as much info as possible. See what export tools handles today.
Accessible and one more is missing (atleast!)
I like the idea that we get notified, but I am not sure it should be a test that fails the build. Just because we don't support something yet doesn't mean its a bug. Perhaps just mark the tests as "canfail" or whatever the pytest equivalent is.
Yep
Also note, this is exactly what plex-listattrs does.
I was planning to use it, I have no intention to reinvent the wheel 👍
Notes add /library/sections/x... includeDetails=1&includeAdvanced=1
metadata: ?includeConcerts=1&includeExtras=1&includeOnDeck=1&includePopularLeaves=1&includeChapters=1&asyncCheckFiles=1&asyncRefreshAnalysis=1&asyncRefreshLocalMediaAgent=1
seems that Plex will add new params to the metadata string from time to time. So we need find a way to get those new params. right now using the webui Get XML usually provides the params.
It's probably very out of date right now, but the script at tools/plex-listattrs.py was written specifically to call out the added and removed params. It's a little messy as it was never meant to be production code. However, the idea is to recursively loop through your Plex library and compare the attrs Plex provided with the attrs defined in the PlexAPI objects and show the differences.