Our forum migration to Discourse will be going on starting late today June 19 to 21. During the migration, the forums will be read-only, except for a single temporary forum (which will not be getting transferred). Read our announcement post here for more information https://forums.plex.tv/discussion/319354/well-be-moving-the-forums-to-discourse-heres-the-scoop/
Hey folks, there is a new Podcast category for forums https://forums.plex.tv/categories/podcasts
If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Plex API and Photos

I am trying to get a list of all photos (actually their aspect ratio) in my Photo library- using Python and the API. I can get the info I need, in a browser, by using: localhost:32400/library/sections/2/year/2015 and the resulting xml shows various tags, including aspectRatio.

But how can I duplicate this using the API? I don't think year is an attribute of the Photo section as
photos = plex.library.section('Photos').year fails.

Or can I just use urllib.request and do a request/read?

Best Answer


Sign In or Register to comment.