Exemplo n.º 1
0
 public function getEpisodeBySeriesName($sSeriesName, $iSeason = SEASON_DEFAULT, $iEpisode = EPISODE_DEFAULT)
 {
     $sFinalURL = $this->_sOMDBAPIRoot . "?t=" . urlencode($sSeriesName) . "&Season=" . $iSeason . "&Episode=" . $iEpisode . "&plot=full";
     $sJSON = $this->accessURL($sFinalURL);
     $oEpisode = new Episode();
     $oEpisode->loadFromJSON($sJSON);
 }