Is it possible to load an external sqlite database located on the local file system? From reading other threads it sounds like general access to the local file system is not possible, but I was wondering if database access was allowed. Thanks.
General access to local file system is possible, but your channel will have to run with elevated code policy and use Shared Libraries.
Enable elevated code policy in Info.plist:
PlexPluginCodePolicy Elevated
Then you may put any python code or libraries that are not supplied with the Plex Framework into your channel's Contents/Libraries/Shared subdir and then use that code as easy as 'import xyz' (or maybe not quite so, because I've had to do some hacking when I tried to add a Python library I wanted to use as a git submodule - I'll give you some code sample for inspiration if you want to go that way).
In case you care about distribution of your work, note that running the plugin with the elevated policy might make it less compatible because some setups may be configured not to run code out of the usual Plex sandbox. Also you'll most likely be on your own with any possible cross-platform issues related to file paths, permissions and so on.
but I was wondering if database access was allowed. Thanks.
Be careful with that, since it'll not import on all platforms
/T
Thanks to you both. Do we know which platforms won't import?
Most Nasboxes will not work for sure
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.