I'm in the process of writing an agent to pull the embedded metadata from a matroska file for use in Plex. My code worked on my test bench and I'm now moving it into the Plex agent format - with the associated limitations. I'm looking for an available Plex-python method that is equivalent to f = open('workfile', 'rb') or the "open with" syntax. I need to be able to open the multimedia file in question in order to query any of the embedded tags. Unfortunately, even with elevated privileges, I can't seem to find a way to open the file in a read only method.
Any ideas?