Skip to content
croneter edited this page Sep 14, 2019 · 14 revisions
Table of Contents

Variables

Variable Type Meaning
Plex.nodes.total window property, integer, 0-n Total number of Plex sections
[ID] integer, 0-n id of a certain Plex section. Sections are continuously numbered starting with zero. Obviously n = Plex.nodes.total - 1
[NODE] string Name of the widget / Plex node, e.g. ondeck. See here for a complete list for both movies and tv shows - use the node_type.
Plex.nodes.[ID].title window property, string Title / label of the node
Plex.nodes.[ID].path window property, string Path for Kodi to this node
Plex.nodes.[ID].type window property, string Type of items of this node, e.g. movies, tvshows, seasons, episodes

You need to supply [ID] and [NODE], the rest will be supplied by PKC. Get a window property variable via

Window(Home).Property(variable)

Home menu

<control type="list">
   ...

   <content>
      <item>
         <label>$INFO[Window(Home).Property(Plex.nodes.[ID].title)]</label>
         <onclick>$INFO[Window(Home).Property(Plex.nodes.[ID].path)]</onclick>
         <property name="type">INFO[Window(Home).Property(Plex.nodes.[ID].type)]</property>
      </item>
   </content>

</control>

ID: 0-20

Example:

      <item>
         <label>$INFO[Window(Home).Property(Plex.nodes.0.title)]</label>
         <onclick>$INFO[Window(Home).Property(Plex.nodes.0.path)]</onclick>
         <property name="type">INFO[Window(Home).Property(Plex.nodes.0.type)]</property>
      </item>

Widgets

<control type="list">
   ...

   <content target="videos" limit="30">$INFO[Window(Home).Property(Plex.nodes.[ID].[NODE].content)]</content>
</control>

ID: 0-20, NODE: ondeck, recent, recommended, genres, lastplayed, random, sets, all

Example:

<control type="list">
   ...

   <content target="videos" limit="30">$INFO[Window(Home).Property(Plex.nodes.0.recent.content)]</content>
</control>

Categories / Index

<control type="list">
   ...

   <content>$INFO[Window(Home).Property(Plex.nodes.[ID].index)]</content>
</control>

ID: 0-20

Example:

<control type="list">
   ...

   <content>$INFO[Window(Home).Property(Plex.nodes.0.index)]</content>
</control>

Functions / Other

Switch user:

<onclick>RunPlugin(plugin://plugin.video.plexkodiconnect/?mode=switchuser)</onclick>

Manual sync:

<onclick>RunPlugin(plugin://plugin.video.plexkodiconnect/?mode=manualsync)</onclick>

Addon settings:

<onclick>Addon.OpenSettings(plugin.video.plexkodiconnect)</onclick>

Total nodes:

$INFO[Window(Home).Property(Plex.nodes.total)]

Playlists:

<item>
   <label>Playlists</label>
   <onclick>ActivateWindow(Videos,&quot;plugin://plugin.video.plexkodiconnect/?key=%2fplaylists%2fall%3ftype%3d15%26sort%3dlastViewedAt%3adesc&amp;mode=browseplex&amp;plex_type=playlist&quot;,return)</onclick>
</item>

Widget:
<content>plugin://plugin.video.plexkodiconnect/?key=%2fplaylists%2fall%3ftype%3d15%26sort%3dlastViewedAt%3adesc&amp;mode=browseplex&amp;plex_type=playlist</content>

Plugins:

<item>
   <label>Plugins</label>
   <onclick>ActivateWindow(Videos,&quot;plugin://plugin.video.plexkodiconnect/?mode=channels&quot;,return)</onclick>
</item>

Widget:
<content>plugin://plugin.video.plexkodiconnect/?mode=channels</content>
Clone this wiki locally