Walking the library: Key vs. Path?

Hello all!



Another day, another question…



Trying to get familiar with the PMS HTTP/XML communication path I am playing around a little. You might have read my “Bonjour-Issue” already.

Now I am a couple of steps ahead, walking the library extensively using the “key” field.



Unfortunately this does not work everywhere… going down System->Plugins->AllPlugins->Vimeo (yes… I installed this previously :slight_smile: the “key” somehow turns bad. Instead, a “path” tag pointing to “/video/vimeo” shows up, which apparently does the trick.



<br />
  <Directory key="aHR0cDovL0JhYXMtaU1hYy5sb2NhbC46MzI0MDAvdmlkZW8vdmltZW8_" unique="1" hasStoreServices="1" thumb="/video/vimeo/:/resources/icon-default.jpg" type="plugin" serverVersion="0.9.3.4-397e914" title="Vimeo" host="Baas-iMac.local." hasPrefs="1" path="/video/vimeo" serverName="Baa’s iMac" art="/video/vimeo/:/resources/art-default.jpg" identifier="com.plexapp.plugins.vimeo" local="1" name="Vimeo"/><br />




Question: How do you know, which tag to use? Why is there an exception to the "walk the keys"-rule?
Is there detailed documentation available on the usage of all those tags?
Any insights?

Thanks,
Berni

lol - i wish there was some documentation!



So, from my experience anything in system/plugins acts as a link to the actual plugins (bit like a unix sym link). So system/plugins/all is used to provide a channel like single view XML, and you then use path to move to the actual plugin.



so it’s kinda the exception rather than the rule.



EDIT: as for the tags, I just use what I need:

unique - is the plugin name unique (i.e. iTunes which a separate audio and video plugins - so add a suffix)

hasStoreServices - I assume this is whether it has been install via store or manually

thumb - thumbnail

type - what is it

serverVersion - version of service delivering plugin

title - self explanatory

host - server delivering plugin

hasPrefs - does the plugins has a prefs pane/dialog

path - URL to access the plugin

serverName - friendly Bonjour name of server with plugin

art - fanart

identifier - internal name of plugin

local - is the plugin local to the server you are viewing XML from

name - self explainitory

Thanks hippojay!

Looks like you are the only one trying to answer my questions :slight_smile:

I guess I will use the “key”… unless there is a “path” tag delivered. Currently it works - maybe I have just not yet found a instance where it fails.

Again… thanks!

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