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

Answers

Sign In or Register to comment.