/**
  * Searches for tv shows based on show name
  *
  * @var string $showName the show name to search for
  * @access public
  * @return array An array of TV_Show objects matching the show name
  **/
 public static function search($showName)
 {
     $params = array('action' => 'search_tv_shows', 'show_name' => $showName);
     $data = TVRage::request($params);
     if ($data) {
         $xml = simplexml_load_string($data);
         $shows = array();
         foreach ($xml->show as $show) {
             $shows[] = new TV_Show($show);
         }
         return $shows;
     }
 }
 /**
  * Get a specific episode by season and episode number
  *
  * @var int $season required the season number
  * @var int $episode required the episode number
  * @return TV_Episode
  **/
 public function getEpisode($season, $episode)
 {
     $params = array('action' => 'get_episode', 'season' => (int) $season, 'episode' => (int) $episode, 'show_id' => $this->showId);
     $data = TVRage::request($params);
     if ($data) {
         $xml = simplexml_load_string($data);
         return new TV_Episode($xml->episode);
     } else {
         return false;
     }
 }