VoxCommando Forum

VoxNastics (User Guides and Mods) => XML Exchange => Topic started by: Haddood on March 27, 2015, 01:10:31 AM

Title: Local Movies
Post by: Haddood on March 27, 2015, 01:10:31 AM
here is a revised version of Local Movies posted here http://voxcommando.com/forum/index.php?topic=1140.msg9577#msg9577 that works with VC v.2
it is very simple command... if I find time I am planning on adding show times (for seven days), theatres, director ...etc.

I limited the list to ten movies ... as if you are in big city the list can grow super long


<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="176" name="local movies today" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://www.imdb.com/showtimes/location/CA/{M:Variables.PostalCode}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExSingle</cmdType>
    <params>
      <param>&lt;h3\sclass="lister-item-header"&gt;.*?&lt;a\shref="/.*?&gt;(.*?)&lt;/a&gt;</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.MatchConcat</cmdType>
    <params>
      <param>{CR}</param>
      <param>10</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>local movies today</phrase>
</command>