Thank you.
]]>private function get_file()
{
*
}
with:
private function get_file()
{
preg_match('/{"url":"(.*?)","quality":"720p","label":"720p","isHD":true}/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
return utf8_trim(stripslashes($match['1']));
}
preg_match('/{"url":"(.*?)","quality":"480p","label":"480p"}/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
return utf8_trim(stripslashes($match['1']));
}
preg_match('/{"url":"(.*?)","quality":"360p","label":"360p"}/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
return utf8_trim(stripslashes($match['1']));
}
preg_match('/{"url":"(.*?)","quality":"240p","label":"240p"}/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
return utf8_trim(stripslashes($match['1']));
}
return FALSE;
}
I just tested this and its working...
]]>Thanks anyway.
]]>replace this
private function get_file()
{
preg_match("/file: '(.*?)',/", $this->html, $match);
if (isset($match['1'])) {
return $match['1'];
}
preg_match('/type=\'video\/mp4\' file="(.*?)"/', $this->html, $match);
if (isset($match['1'])) {
return $match['1'];
}
$server = null;
preg_match('/srv=(.*?)\&/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
$server = urldecode($match['1']).'/key=';
}
preg_match('/file=(.*?)&/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
if (strpos($match['1'], 'http://') !== false) {
$server = null;
}
return $server.urldecode($match['1']).'.mp4';
}
return FALSE;
}
with this
private function get_file()
{
preg_match('/"sources":{"mp4":[{"url":"(.*?)"isHD":true},/', $this->html, $match);
if (!isset($match['1']) or !$match['1']) {
preg_match('/{"url":"(.*?)"480p"},/', $this->html, $match);
if (!isset($match['1']) or !$match['1']) {
preg_match('/{"url":"(.*?)":"240p"}]}/', $this->html, $match);
}
}
$replace = "\\";
if (isset($match['1']) && $match['1']) {
return str_replace($replace,'',$match['1']);
}
$this->error = $this->errors['file_error'];
}
Thank you.
]]>I'm grabbing xhamster videos. I added a list of urls. I just grab one video then it stops. I have to requeue videos everytime so it restarts.
You already have my access.
Thank you.
]]>