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.
Pages: 1
Hello,
Let's say you don't convert videos, you just copy them from graber. How to limit the download speed from the tube source? ( let's say xhamster ).
Thank you.
Offline
You could do this by modifying the libraries/framework/curl.php file and add use:
curl_setopt($ch, CURLOPT_MAX_RECV_SPEED_LARGE, 10240);
to limit the download speed...
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Where should i add it exactly in this file?
Also it will just limit the download speed from the tube source to the media server, not the users download speed of the videos on my site, right?
Thank you.
Last edited by happylag (2017-04-18 17:16:53)
Offline
Yes, it will limit the download speed for the files that are being downloaded on your server (by the graber). Edit libraries/framework/curl.php and add:
curl_setopt($ch, CURLOPT_MAX_RECV_SPEED_LARGE, 10240);
after
$ch = curl_init();
$fh = fopen($file, 'w');
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FILE, $fh);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, CURL_TIMEOUT);
curl_setopt($ch, CURLOPT_VERBOSE, CURL_VERBOSE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_NOPROGRESS, CURL_PROGRESS);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11');
Please note that you need a recent version of curl and php. Also i never tested this on freebsd.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Pages: 1