Adult Script Pro Community Forums

Create, help and share your ideas with the community!

You are not logged in.

#1 2017-09-29 11:28:06

happylag
Member
Registered: 2016-04-05
Posts: 154

Graber not working

Hello,

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.

Offline

#2 2017-10-03 13:36:49

symtab
Administrator
Registered: 2010-08-23
Posts: 7,376
Website

Re: Graber not working

will fix asap, sorry for the delay


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - PopAds

Offline

#3 2017-10-04 10:22:40

happylag
Member
Registered: 2016-04-05
Posts: 154

Re: Graber not working

Would it be possible to fix it this week? I haven't been able to update my site for weeks.

Thank you.

Offline

#4 2017-10-04 12:16:45

thiva7
Member
Registered: 2011-04-30
Posts: 1,009

Re: Graber not working

Do this i just test it and work for me

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'];
	}

Offline

#5 2017-10-04 21:02:16

happylag
Member
Registered: 2016-04-05
Posts: 154

Re: Graber not working

It still doesn't work with this change.

Thanks anyway.

Offline

#6 2017-10-05 12:26:43

symtab
Administrator
Registered: 2010-08-23
Posts: 7,376
Website

Re: Graber not working

Edit admin/modules/graber/grabers/xhamster.php and replace the code:

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...


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - PopAds

Offline

#7 2017-10-06 11:27:39

happylag
Member
Registered: 2016-04-05
Posts: 154

Re: Graber not working

It works, thank you.

Offline

#8 2017-10-06 14:29:35

symtab
Administrator
Registered: 2010-08-23
Posts: 7,376
Website

Re: Graber not working

Welcome! Sorry for the delay!


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - PopAds

Offline

#9 2017-10-18 10:03:28

happylag
Member
Registered: 2016-04-05
Posts: 154

Re: Graber not working

Did Xhamster update their site? It's not grabing anymore.

Offline

#10 2017-10-20 06:24:20

symtab
Administrator
Registered: 2010-08-23
Posts: 7,376
Website

Re: Graber not working

Its working for me, i just tested after seeing your forum reply. Does it work to add a single video in the admin panel?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - PopAds

Offline

#11 2017-10-20 19:23:51

happylag
Member
Registered: 2016-04-05
Posts: 154

Re: Graber not working

It works if i add a single xhamster video but not with multi urls grabber.

Last edited by happylag (2017-10-21 17:36:27)

Offline

#12 2017-10-27 15:38:42

happylag
Member
Registered: 2016-04-05
Posts: 154

Re: Graber not working

Any update on a multi graber fix?

Thank you.

Offline

#13 2017-11-08 17:29:49

happylag
Member
Registered: 2016-04-05
Posts: 154

Re: Graber not working

Fixed

Last edited by happylag (2017-11-08 17:53:36)

Offline

Board footer

Powered by FluxBB