# A question of methods...

**URL:** <https://forums.plex.tv/t/a-question-of-methods/83802>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [November 23, 2014, 3:52pm UTC](https://forums.plex.tv/t/a-question-of-methods/83802 "2014-11-23T15:52:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ATrentham](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@ATrentham](https://forums.plex.tv/u/ATrentham)\
**Post date:** [November 23, 2014, 3:52pm UTC](https://forums.plex.tv/t/a-question-of-methods/83802/1 "2014-11-23T15:52:00Z")

</div>

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

&nbsp;

Any ideas? &nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 3:38am UTC](https://forums.plex.tv/t/a-question-of-methods/83802/2 "2019-12-21T03:38:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
