Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#26 Re: Development » grabbers fix » 2017-09-19 21:51:01

symtab wrote:

I just tested the grabers on my box for xhamster and redtube. Both are working.

Hey

send me last version when u have time.
if i find anything that not working i can make it work...this way u will stop worry about less stuff and work more on dev v3

#27 Re: Development » grabbers fix » 2017-09-19 10:21:43

Double_D wrote:

thanks Thiva wink


No problem smile

#28 Re: Development » grabbers fix » 2017-09-15 22:26:48

happylag wrote:

Would it be possible to send me the whole xhamster file?

Thank you.


i cant send you email via asp forum so i put all code here...just copy paste it

<?php
defined('_VALID') or die('Restricted Access!');
class VGraber_xhamster
{
	private $url;
	private $html;
	private $video;
	
	private $error		= FALSE;
	private $errors 	= array(
		'html_error'		=> 'Failed to get html for the requested url!',
		'title_error'		=> 'Failed to get video title!',
		'category_error'	=> 'Failed to get video category!',
		'tags_error'		=> 'Failed to get video tags!',
		'file_error'		=> 'Failed to get video file!'
	);
	
	public function __construct($url)
	{
		$this->url	= $url;
	}
	
	public function process()
	{
		$this->get_html($this->url);
		if (!$this->error) {
			$this->video['title']		= $this->get_title();
			$this->video['description']	= $this->get_description();
			$this->video['tags']		= $this->get_tags();
			$this->video['category']	= $this->get_category();
			$this->video['file']		= $this->get_file();
			$this->video['size']		= $this->get_size();
		}
	}
	
	public function get_video()
	{
		return $this->video;
	}
	
	public function get_html($url)
	{
		if (!$this->html = VCurl::string($url)) {
			$this->error = $this->errors['html_error'];
		}
		
		$this->html	= str_replace(array("\n", "\r"), '', $this->html);
		$this->html = preg_replace('/\s\s+/', ' ', $this->html);
	}
	
	public function is_error()
	{
		return ($this->error) ? TRUE : FALSE;
	}
	
	public function get_error()
	{
		return $this->error;
	}
	
	private function get_title()
	{
		preg_match('/<h1 itemprop="name">(.*?)<\/h1>/', $this->html, $match);
		if (isset($match['1']) && $match['1']) {
			return e(strip_tags(str_replace(' - xHamster.com', '', $match['1'])));
		}
		
		$this->error = $this->errors['title_error'];
	}
	
	private function get_description()
	{
		preg_match('/<span>Description:<\/span>(.*?)Comment please/', $this->html, $match);
		if (isset($match['1']) && $match['1']) {
			return e(strip_tags($match['1']));
		}else{
			return $this->get_title();
		}
	}
	
	private function get_tags()
	{
		preg_match('/<span>Categories:<\/span><\/td><td>(.*?)<\/td>/', $this->html, $match);
		if (isset($match['1']) && $match['1']) {
			preg_match_all('/<a title="(.*?)" href="(.*?)">(.*?)<\/a>/', $match['1'], $matches);
			if (isset($matches['3']) && $matches['3']) {
				return $matches['3'];
			}
		}
		
		if (isset($this->video['title']) && $this->video['title'] != '') {
            $array  = explode(' ', utf8_strtolower($this->video['title']));
            $tags   = array();
            foreach ($array as $string) {
                if (strlen($string) >= TAG_MIN_LENGTH) {
                    $tags[] = $string;
                }
            }

            return $tags;
        }
		
		$this->error = $this->errors['tags_error'];
	}
	
	private function get_category()
	{
		
		return '';
	}

   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;
    }
	
	private function get_size()
	{
		if (isset($this->video['file'])) {
			return 0;
		}
	}
}

#29 Re: Development » grabbers fix » 2017-09-15 20:39:06

hey,

since i fix grabber my self and am using only 1-3 sites i dont ask adrian for new version.
as i see both codes work for me.

i test each code and get files source

#30 Development » grabbers fix » 2017-09-14 11:34:01

thiva7
Replies: 11

there is few grabbers sites stop working....i didnt test one by one yet.... i have fix xhamster.
if you find some other email me and i will fix


xhamster fix file_get

on line 112 replace all function get_file() with this code

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

Thanks

#31 Re: Troubleshooting » Has my site hacked? » 2017-09-09 10:38:00

your site is redirect..that is bad for seo

#32 Re: Feature Requests » Ftp video upload? » 2017-06-15 11:25:58

security issue with this option

#33 Re: Troubleshooting » How to disable Ads in frontpage only » 2017-05-29 02:02:38

the code that show global top is located in header.tpl.php , so if you remove it from there will not show it  everywhere else too.
as i check code you cant just show it in all pages but not in home.

if you want to remove it

find this

<?php if (isset($this->cat_id)): echo p('adv_category', 'video-category-top', array($this->cat_id)); else: echo p('adv', 'global-top'); endif; ?>

and just remove this part

else: echo p('adv', 'global-top');

#34 Re: Documentation » [LIST] Adult Advertising Networks (Pay Per Click) » 2017-05-08 08:37:45

zackmaster wrote:
Eri wrote:
zackmaster wrote:

I use HilltopAds, Exoclick, AdsTerra, Ero-advertising and JuicyAds on my adult tubes. I use all of them via  htttp://adspyglass.com at the same time. It automatically detects the most profitable offers for my traffic from ad networks. My profit has growed up nearly +40%.

They take you 10% or not?

Will give, if you on their referral link will become their client https://www.adspyglass.com/?u=24554


They have plans... 50$,100$,300$...and  so on..and they have fees.they get everything from you tongue . why to buy plan? they should have % from your income like ads network do.

#35 Re: Troubleshooting » orphans videos recategorize issue » 2017-04-06 19:57:38

there is not categopries to change, are orphans videos. yeah i have set auto terms. if i choose one video will add categories after an sql error, but in multi video selection or in recategorize tool is not adding videos to some categories

#36 Troubleshooting » orphans videos recategorize issue » 2017-04-05 20:49:20

thiva7
Replies: 3

Hey

i have many orphans videos and recategorize not working, from video list when i choose 2+ videos recategorize and assing videos to categories only one video.and in video/categorize i run it milion times and there are many videos still orphans .
any fix?

#37 Feature Requests » video report » 2017-04-02 11:25:18

thiva7
Replies: 1

Hey

can u add more option in some video reports pls?
like in "Not Playing" more info email etc, some of my visitors report videos that is Not Playing but for me is playing normaly, so would be nice to know more about that, live browser, OS etc

Thanks

#38 Re: Troubleshooting » Google search console errors » 2017-03-31 18:14:20

symtab wrote:

Disable pseudostreaming secure link protection.


when i do that videos not playing

#39 Re: Troubleshooting » Google search console errors » 2017-03-29 19:38:07

I do that last time and not help,
its block all URLs when add media on robots.txt

#40 Troubleshooting » Google search console errors » 2017-03-29 13:18:51

thiva7
Replies: 5

Hey

in Google search console i got many errors

access danied 1k and getting more

https://z38i.imgup.net/access_dan207c.png

many Blocked Resources from main url

8k and more. i am not sure but i think thats not good for seo.
how to fix that issues?


Thanks

#41 Re: Open Discussion » google AGAIN » 2017-02-19 02:54:52

Hey eri thank you for reply

what you mean you use direct popunder link?
atm i have js code that adsterra gave me,
here is : <script type='text/javascript' src='//pl1632.puserving.com/ca/dd/72/cadd721b1e78b9c54bcd579842242f4d.js'></script>

you do something defrent that am missing? and help to not banned and brake google rules?
pls email me to : paris_thiva@yahoo.gr

hillstopads what cpm give you?

#42 Re: Open Discussion » google AGAIN » 2017-02-18 09:17:06

Hey all

i filnaly get msg from google.
the reason is <Sneaky mobile redirects detected >
am pretty sure clickadu was the reason , when i add it i saw 8% change in bounce rate..goes up .

question : adsterra is code is bettersolution?
cuz i see in search console in Blocked Resources that the JS of them is blocked and effect 7k+ URLS

Thanks

#43 Open Discussion » google AGAIN » 2017-02-16 12:51:38

thiva7
Replies: 4

Hey

i have 2 sites and one of them get penalized from google but i didnt care so much since this site get only 100 visit from google so not so much issue ....but now i see my other site traffic get drop daily and today i almost get 0 traffic from google  and before i had 8-10k daily.
both sites have same IP ( but i read on internet that IP doesn't effect in SEO ) and i had link to each other, Now i have remove both links but again i worry for result.

will my traffic come back?

#44 Re: Troubleshooting » Where is the forum option? » 2017-02-09 08:38:17

hmm....dont know . This is something that adrian know

#45 Re: Troubleshooting » Where is the forum option? » 2017-02-08 11:26:45

forum have discontinued after 1.x.x , so there DB module etc but have not updated and not have theme files. so will not work.
if i remember well Andrian said will add again forum after 3.x.x.

#46 Re: Open Discussion » opinion about ads » 2017-02-05 12:18:50

Double_D wrote:

if you want fast money use that for a couple of weeks and dont care about the bounce rate, Thiva

Thats why love you my men big_smile

#47 Re: Open Discussion » opinion about ads » 2017-02-03 21:20:00

Eri wrote:

popunder price depends
sound or not
may be a popup

my question is not about price..... is about bounce rate, would you keep use it ? if bounce goes 7-8% up?

#48 Open Discussion » opinion about ads » 2017-02-03 11:49:45

thiva7
Replies: 6

Hey

Lets say u had a deal with a ads service and they offer you a good CPM for pop ads but after 1 day you see bounce rate to go up ~7%
You would keep using them?

Thanks

#50 Re: Hosting » INXY – dedicated servers, CDN and other hosting services » 2017-01-27 11:07:50

Hey

Whats that Verizon CDN network include? only css and image?

Thanks

Board footer

Powered by FluxBB