Author Topic: Frodo Movie Trailers  (Read 2952 times)

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Frodo Movie Trailers
« on: December 28, 2013, 04:48:43 PM »
Use this command to view a movie trailer when browsing movies in XBMC Frodo

Code: [Select]
<?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

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 3
    • View Profile
Re: Frodo Movie Trailers
« Reply #1 on: December 28, 2013, 05:01:08 PM »
Thanks, works great!

painy

  • $upporter
  • Sr. Member
  • *****
  • Posts: 103
  • Karma: 1
    • View Profile
Re: Frodo Movie Trailers
« Reply #2 on: December 28, 2013, 06:40:06 PM »
Sweet!