Imdb\Title::populatePoster PHP Метод

populatePoster() приватный Метод

Setup cover photo (thumbnail and big variant)
См. также: IMDB page / (TitlePage)
private populatePoster ( ) : boolean
Результат boolean success (TRUE if found, FALSE otherwise)
    private function populatePoster()
    {
        preg_match('!<img [^>]+src="([^"]+)"[^>]+itemprop="image" />!ims', $this->getPage("Title"), $match);
        if (empty($match[1])) {
            return false;
        }
        $this->main_poster_thumb = $match[1];
        if (preg_match('|(.*\\._V1).*|iUs', $match[1], $mo)) {
            $this->main_poster = $mo[1];
            return true;
        } else {
            return false;
        }
    }