I noticed on the new Plex app for iOS (which is bad a$$ now btw) it also has the users email for shared librarires. Is there a way to easily pull in from PMS the users email address so it could be included in the shared lib tab. The only reason I ask is a few of the shared libraries that I have use same Friendly name and it would be great to know which one is which easily without entering into the shared lib to figure out which one is which. Thanks in advance if this can be included in the main branch or if I could include it in my own fork with a simple code addition.
Check https://plex.tv/pms/servers. The returned XML might contain the owner’s email - and possibly other data you are interested in.
PlexAPI.py/discoverPMS()/section #MyPlex servers does the data harvesting, pushing all neccessary information into the g_PMS[] struct. You should be able to add any information there… and later pick the property in one of the templates for display purposes.
The returned XML didn’t contain the users email for ea server unfortunately. I did try to look into PlexAPI.py (lines 229-237) and couldn’t find a way to put the email into Library/List.xml to test for now until I add it to other XML’s I assume its this line that needs an edit:
{{VAL(name)}}{{VAL(local::0= <{{TEXT(remote)}}>|0 =)}}I tried to edit it to reflect the change for ea users email but couldn’t figure the right string to add, obviously this test edit only pulled in my email which wasn’t the desired output:
{{VAL(name)}}{{SETTING(myplex_user)}}{{VAL(local::0= <{{TEXT(remote)}}>|0 =)}}Do I need a VAL or SETTING to use to populate the email?
I tried:
{{SETTING(user)}}
{{SETTING(myplex)}}
{{SETTING(email)}}
{{VAL(user)}}
{{VAL(myplex)}}
{{VAL(email)}}
But none of them seemed to return the email for ea server. Is there some code needed to add to PlexAPI.py/XMLConverter.py or other files or should it already have a string or value etc I can pull in the email for ea server. I know I need to add more for the spaces so it looks proper when displayed in the shared tab for ea server but that should be easy once I have the proper value to pull in the email for ea server.
Thanks for your help looking into this when you find the time.
The XML gives “sourceTitle” containing the owners name - should give you cimilar information as email addr.
And yes, PlexAPI.py needs some editing to provide the data to XMLConverter.