public function plot()
{
if (empty($this->plot_plot)) {
$this->getPage("Plot");
if ($this->page["Plot"] == "cannot open page") {
return array();
}
// no such page
if (preg_match('!<div class="desc"[^>]*>(.+?)<h4!ims', $this->page["Plot"], $block)) {
if (preg_match_all('!<li\\s+class="(odd|even)[^"]*"\\s*>(.+?)</li>!ims', $block[0], $matches)) {
for ($i = 0; $i < count($matches[0]); ++$i) {
$this->plot_plot[$i] = preg_replace('!<a href="/search/title!i', '<a href="http://' . $this->imdbsite . '/search/title', $matches[2][$i]);
}
}
}
}
return $this->plot_plot;
}