python-plexapi icon indicating copy to clipboard operation
python-plexapi copied to clipboard

Add a script that checks for new attributes

Open Hellowlol opened this issue 8 years ago • 7 comments

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!)

Hellowlol avatar Oct 09 '17 01:10 Hellowlol

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.

pkkid avatar Oct 09 '17 02:10 pkkid

Yep

Hellowlol avatar Oct 09 '17 07:10 Hellowlol

Also note, this is exactly what plex-listattrs does.

pkkid avatar Oct 09 '17 13:10 pkkid

I was planning to use it, I have no intention to reinvent the wheel 👍

Hellowlol avatar Oct 09 '17 13:10 Hellowlol

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

Hellowlol avatar Oct 09 '17 19:10 Hellowlol

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.

blacktwin avatar Sep 09 '20 20:09 blacktwin

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.

pkkid avatar Sep 09 '20 21:09 pkkid