I am starting off plugin development and have decided to base myself on an existing plugin. I renamed the plugin, and changed the value of the “bundle identifier” in the info.plist. The problem I am having is that Plex is not seeing the plugin. I have even tried quitting Plex. Can anyone point me in the right direction?
A little experimenting and looking at other plugins reveals that the right place is:
~/Library/Application Support/Plex Media Server/Plug-ins
Placing a plugin in there is sufficient for it to get recognised. My mistake is that I didn't save the info.plist in XML format, as Plex is expecting. I also found that starting the Console application is handy. In doing so I started Plex and then cleared the log. I then copied the plugin to the plug-ins folder and there I could see any errors related to my plug-in getting displayed. I didn't need to wait until Plex was started, but this ensured I was only seeing the logs specific to my plug-in.
if the other plugins are showing up fine, but your plugin is not showing up at all in the list, it is usually always due to a python syntax error. and by the way, setting the CFBundleIdentifier in the info.plist only really changes the name of the file it logs to. to set the name and title of the plugin, you have to change Plugin.AddPrefixHandler() (and the prefix string constant it uses) and MediaContainer.title1= in the Start function. like this:
LMA_PREFIX = "/music/LMA"<br />
CACHE_INTERVAL = 3600<br />
<br />
def Start():<br />
Plugin.AddPrefixHandler(LMA_PREFIX, MainMenu, 'Live Music Archive', 'logp.png', 'background.png')<br />
Plugin.AddViewGroup("InfoList", viewMode="InfoList", mediaType="items")<br />
Plugin.AddViewGroup("List", viewMode="List", mediaType="items")<br />
MediaContainer.title1 = 'Live Music Archive'<br />
MediaContainer.content = 'Items'<br />
MediaContainer.art = R('background.png')<br />
HTTP.SetCacheTime(CACHE_INTERVAL)
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.