public function alsoknow()
{
if (empty($this->akas)) {
$this->getPage("ReleaseInfo");
$ak_s = strpos($this->page["ReleaseInfo"], "<a id=\"akas\"");
if ($ak_s == 0) {
return array();
}
$alsoknow_end = strpos($this->page["ReleaseInfo"], "</table>", $ak_s);
$alsoknow_all = substr($this->page["ReleaseInfo"], $ak_s, $alsoknow_end - $ak_s);
preg_match_all("@<td>(.*?)</td>@i", $alsoknow_all, $matches);
for ($i = 0; $i < count($matches[1]); $i += 2) {
$description = trim($matches[1][$i]);
$titles = explode('/', $matches[1][$i + 1]);
// This might not happen anymore
if (empty($titles[0])) {
continue;
}
$title = trim($titles[0]);
$firstbracket = strpos($description, '(');
if ($firstbracket === false) {
$country = trim($description);
$comments = array();
} else {
$country = trim(substr($description, 0, $firstbracket));
preg_match_all("@\\((.+?)\\)@", $description, $matches3);
$comments = $matches3[1];
}
$this->akas[] = array("title" => $title, "country" => $country, "comments" => $comments, "comment" => implode(', ', $comments), "year" => '', "lang" => '');
}
}
return $this->akas;
}