VoxCommando

VoxNastics (User Guides and Mods) => XML Exchange => Topic started by: MMatty1 on December 29, 2016, 07:48:01 AM

Title: Play Next Episode Of {1}
Post by: MMatty1 on December 29, 2016, 07:48:01 AM
Hi this command is simple, ask for next episode of tvshow in your kodi library and it will find and play it if no new unwatched episodes available it tells you..



Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.2.2-->
<command id="286" name=" Play Next Episodes of {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>Playlist.Clear</param>
      <param>"playlistid": 1</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.SmartPL</cmdType>
    <params>
      <param>smarts\unwatchedepisode.xsp</param>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>Player.Open</param>
      <param>"item":{"file":"special://profile/playlists/mixed/voxsmart.xsp"}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>Player.GetActivePlayers</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{LastResult}&amp;&amp;"type": "video"</ifParams>
    <then />
    <else>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>no new episodes available</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <phrase>Play next episode of </phrase>
  <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcTvShowTitles.xml</payloadFromXML>
</command>