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

Variables

Variable Type Meaning
Plex.nodes.total window property [int 0-n] Total number of Plex sections
[ID] [int 0-n] id of a certain Plex section. Sections are continuously numbered starting with zero. n corresponds to (Plex.nodes.total - 1)
[TARGET] string Name of the widget / Plex node, e.g. ondeck. See here for a complete list for both movies and tv shows.

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].[TARGET].content)]</content>
</control>

ID: 0-20, TARGET: 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>