Proxy\Plugin\XHamsterPlugin::find_video PHP Метод

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

private find_video ( $html )
    private function find_video($html)
    {
        $file = false;
        if (preg_match("/file: '([^']+)'/", $html, $matches)) {
            $file = rawurldecode($matches[1]);
        } else {
            if (preg_match("@srv=&file=([^&]+)@s", $html, $matches)) {
                $file = rawurldecode($matches[1]);
            }
        }
        return $file;
    }