public function movietype()
{
if (empty($this->main_movietype)) {
if (empty($this->main_title)) {
$this->title_year();
}
// in case title was not yet parsed; it might already contain the movietype
if (!empty($this->main_movietype)) {
return $this->main_movietype;
}
// done already
$this->getPage("Title");
if (preg_match('!<h1 class="header"[^>]*>.+</h1>\\s*<div class="infobar">\\s*([\\w\\s]+)!ims', $this->page["Title"], $match)) {
$this->main_movietype = trim($match[1]);
}
$this->debug_object($match);
}
if (empty($this->main_movietype)) {
$this->main_movietype = 'Movie';
}
return $this->main_movietype;
}