News:

Would you like to say "Thanks!" for extra support or new features that we provided? Donations are gratefully accepted.

Main Menu

Frodo Movie Trailers

Started by jitterjames, December 28, 2013, 04:48:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jitterjames

Use this command to view a movie trailer when browsing movies in XBMC Frodo

<?xml version="1.0" encoding="utf-16"?>
<command id="481" name="play trailer" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>XBMC.GetInfoBooleans&amp;&amp;"booleans": ["Container.Content(movies)"]</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{LastResult}&amp;&amp;true</ifParams>
    <then>
      <action>
        <cmdType>XJson.Raw</cmdType>
        <cmdString>XBMC.GetInfoLabels&amp;&amp;"labels": ["ListItem.Title","Listitem.Trailer"]</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Results.RegEx</cmdType>
        <cmdString>":\s"(.*)"</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <cmdString>Loading trailer for: {match.1}</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>XJson.Raw</cmdType>
        <cmdString>Player.Open&amp;&amp;"item": { "file": "{Match.2}"} , "options":{ "resume":true }</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <cmdString>No Movie is selected.</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <phrase>Show, Play</phrase>
  <phrase optional="true">this, the</phrase>
  <phrase optional="true">movie, video, film</phrase>
  <phrase>Trailer</phrase>
</command>

Brian


painy