Information on how to get an environment setup to develop plugins
Hey all,
I'm a developer with c/c++/java/obj-c/etc background. Although I have never touched Python it seems rather friendly.
I know there is really no documentation to go off of, but I wanted to get some getting started info with respect to plug-in development.
I currently have plans to expand the EyeTV Scanner Plug-in (make it more robust, handle Series where applicable and fallback to Movie as a last resort) and perhaps a find videos in RAR archives scanner, so we can use the Plex iOS app to stream stuff even if you haven't extracted the video yet (usecase: downloads wrapped in rars currently being seeded).
I wanted to know a few basics and perhaps consolidate some of the information here so others can get started quickly, so perhaps if anyone has the time they could explain how to do the following (I'm familiar with some of these, but for the sake of completeness):
1. Where to save my .py file so the Plex Media Server picks it up.
2. What libraries to include? (as a boilerplate)
3. Where can I see compiler/syntax errors for my script?
4. Where can I find what commands can be made to the Plex Media Server (easiest way considering there is currently no documentation).
Although the docs may not be 100% complete and are written for the v1 framework, there's a lot of info to find there already (v2 framework changes are very small, so the docs are still very usable):
http://dev.plexapp.com/docs/
http://wiki.plexapp.com/index.php/Plugin_development
Before starting on RAR stuff, have a look at this topic: http://forums.plexapp.com/index.php?/topic/17211-transprar-rar-workaround-for-plex-9/
Plugin bundles ([bundle info](http://dev.plexapp.com/docs/Bundle.html)) are saved in *~/Library/Application Support/Plex Media Server/Plug-ins*
For v1 framework:
from PMS import *
For v2 framework: nothing, this is done automatically
[list=1]
[*]For **v1** framework include this in your Info.plist file: