The search for the metacritic site has been broken for some time. I attach an updated search which is NOT working however. I cannot figure out why. If anyone has the time i would appreciate some other eyes having a look.

Thanks, Tom.
<search function="crit">
  <name>metacritic</name>
  <category>Entertainment</category>
  <contributor>Tom Corcoran</contributor>
  <link>http://www.metacritic.com/search/index.shtml</link>
  <email></email>
  <description>Metacritic compiles reviews from respected critics and publications for film, video/dvd, music and games.<br/>
    <div class="helpboxDescLabels">Usage:</div>
  	<table class="helpboxDescTable">
  		<tr><td>crit [{/all | /film | /music | /games | | /book | /tv}] &lt;<i>title</i>&gt; </td></tr>
  	</table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
  		<tr><td>crit /music bright orange bright yellow</td></tr>
  		<tr><td>crit /film bringing down the house</td></tr>
  	</table>
  </description>

  <form name="critf"
        method="post"
        action="http://search.metacritic.com/search/process";>
    <input type="hidden" name="ts" value="" />
    <input type="hidden" name="tfs" value="all" />
    <input type="hidden" name="sb" value="0" />
    <input type="hidden" name="ty" value="0" />
    <input type="hidden" name="movie_videodvd" value="true" />
    <input type="hidden" name="movie_intheaters" value="true" />
    <input type="hidden" name="release_date_s" value="" />
    <input type="hidden" name="release_date_e" value="" />
    <input type="hidden" name="metascore_s" value="" />
    <input type="hidden" name="metascore_e" value="" />
  </form>

  <script><![CDATA[
    function crit(q)
    {
      if( nullArgs("crit", q) )
        return false;
      else
        {
          var args = parseArgsEx(q, "all,film,music,games,book,tv");

          if( args.switches.length > 0 )
            for( var j=0; j<args.switches.length; j++ )
              switch( args.switches[j].name )
              {
                case "all": document.critf.ty.value = "0"; break;
                case "film": document.critf.ty.value = "1"; break;
                case "music": document.critf.ty.value = "2"; break;
                case "games": document.critf.ty.value = "3"; break;
                case "book": document.critf.ty.value = "4"; break;
                case "tv": document.critf.ty.value = "6"; break;
              }
        }  
      document.critf.ts.value = args.q;

      submitForm(critf);
    }
  ]]></script>
</search>

Reply via email to