The need for the plex token is annoying when i got access to all files without it, just missing which poster was selected… Any way to get or not need the plex token?
Thanks a lot dane22, despite maintaining hama and the absolute series scanner i am not that knowledgeable about Plex inner workings.
### Plex Library XML ###
PLEX_LIBRARY, PLEX_LIBRARY_URL = {}, "http://127.0.0.1:32400/library/sections/" # Allow to get the library name to get a log per library https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-Token
try:
library_xml = etree.fromstring(urllib2.urlopen(PLEX_LIBRARY_URL).read())
for library in library_xml.iterchildren('Directory'):
for path in library.iterchildren('Location'):
PLEX_LIBRARY[path.get("path")] = library.get("title")
Log.Info( path.get("path") + " = " + library.get("title") )
except Exception as e: Log.Info("Exception: '{}'".format(e))
Log.Info('PLEX_LIBRARY: {}'.format(PLEX_LIBRARY))
@dane22https://github.com/ZeroQI/LME.bundle
Managed to load xmls without token, as you predicted, thanks a lot. Will have to change HAMA code as i did it wrong there too
Would you have an example of paging with xml by any chance?
I love the idea for the project. I just recently moved to a new Plex instance, but I’m keeping the other up to try and find any locked fields I made in the old server.
Would there be a way to export only locked fields to a central folder?