I’m making a python script that parses Plex log file events, and I need to get the filepath of the media file that is referenced in certain log entries.
The logs contain this string…:
/library/metadata/XXXX <-- a number
… and I would like to somehow fetch the location of the actual media file of that number.
I don’t know if this is what you are looking for, but there is no direct way to convert that to the path. However, with that, you can call up the XML for that item. It’s the same call made when using the “get info”/“View XML” functions from Plex Web. That XML will then have the path you can parse out.