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.
Hey adrian...i have again same issue with my graber.
mass add not working
Hey
i have create based on andrian code of course some extra tools that may help to get some extra traffic based on your video export.
most of tube site give option to download CSV videos, so i create a "tool"for that .
step 1
add export videos from admin->videos->Exports
step 2
add a content page for webmasters from admin->content->add
(we will come back to this later )
step 3
create on your public_html a folder "webmasters"
step 4
create a file named "create_csv.php" , and replace exmple.com with your URL
and add this code inside
<?php
define('_VALID', true);
require 'libraries/bootstrap.php';
function build_csv($videos, $fields, $method)
{
$columns = array_flip(explode(',', $fields));
$filter = VF::factory('filter');
$access_key = (isset($_GET['key'])) ? $filter->get('key', 'STRING', 'GET') : '';
if ($access_key == '') {
die('Invalid access key (1)!');
}
$emodel = VModel::load('export', 'video');
if (!$export = $emodel->get($access_key)) {
die('Invalid access key (2)!');
}
$main_url = "https://www.example.com";
$output = array();
foreach ($videos as $video) {
$video_id = (int) $video['video_id'];
$entry = array();
if (isset($columns['video_id'])) {
$entry[$columns['video_id']] = $video_id;
}
if (isset($columns['url'])) {
$entry[$columns['url']] = video_view_url($video_id, $video['slug']."/?utm_source=".$export['csource']."&utm_medium=".$export['cmedium']."&utm_campaign=".$export['cexport']."", null, false, true);
}
if (isset($columns['title'])) {
$entry[$columns['title']] = $video['title'];
}
if (isset($columns['description'])) {
$entry[$columns['description']] = $video['description'];
}
if (isset($columns['categories'])) {
$entry[$columns['categories']] = $video['categories'];
}
if (isset($columns['tags'])) {
$entry[$columns['tags']] = $video['tags'];
}
if (isset($columns['duration'])) {
$entry[$columns['duration']] = (int) $video['duration'];
}
if (isset($columns['add_date'])) {
$entry[$columns['add_date']] = date('Y-m-d H:i:s', $video['add_time']);
}
if (isset($columns['thumb'])) {
$entry[$columns['thumb']] = $main_url .''. THUMB_URL.'/'.path($video['video_id']).'/'.$video['thumb'].'.jpg';
}
if (isset($columns['thumbs'])) {
$thumbs = array();
for ($thumb = 1; $thumb <= $video['thumbs']; $thumb++) {
$thumbs[] = $main_url .''. THUMB_URL.'/'.path($video['video_id']).'/'.$thumb.'.jpg';
}
$entry[$columns['thumbs']] = implode(',', $thumbs);
}
if (isset($columns['embed'])) {
$entry[$columns['embed']] = ($video['embed_code'] != '') ? $video['embed_code'] : '<iframe src="'.BASE_URL.'/embed/'.$video_id.'/" width="100%" height="100%" frameborder="0" border="0" scrolling="no"></iframe>';
}
ksort($entry);
$output[] = implode('|', $entry);
}
$date = date("Y-m-d");
$p = implode("\n", $output);
$p = file_put_contents('webmasters/CSV_export-'.$date.'.csv',$p);
$p;
// output headers so that the file is downloaded rather than displayed
header("Content-type: text/csv");
header("Content-disposition: attachment; filename = ".$main_url."/webmasters/CSV_export-".$date.".csv");
readfile("".$main_url."/webmasters/CSV_export-".$date.".csv");
}
$videos = $emodel->videos($args);
if ($ext == 'xml') {
$content = build_xml($videos, $fields, $method);
} else {
$content = build_csv($videos, $fields, $method);
}
if ($export['cache_ttl'] > 0 and $timeline == 'all') {
file_put_contents($cache_file, $content);
}
echo $content;
VF::close();
Now in your browser open URL : exmple.com/create_csv.php?key=KEY&fields=url,title,categories,tags,thumbs,duration,embed
replace KEY with the key generated in step 1
Each time this URL run will save new CSV to webmaster folder
you can go to your content manage page in admin and add this url AS href and will download fresh CSV each time
exmple.com/create_csv.php?key=KEY&fields=url,title,categories,tags,thumbs,duration,embed
Enjoy
Hey
when i am trying to edit lang took forever to load page.
some of the filters not working
hair color
Has Piercings:
Has Tattoos
and in all when return to all is stay where is
in ftp upload photo when adding model
(string)
UPDATE model
SET total_albums = total_albums+1
WHERE model_id = ?
LIMIT 1
(string)
UPDATE model
SET total_albums = total_albums+1
WHERE model_id = ?
LIMIT 1
MySQLi query has prepared entries, but no types or variables specified!
you configured my server.can you contect me pls to fix few issues?
Thanks
most of the time is firefox problem.for example after click in empty space working
photo view is not reponsive.
video hotlink protection not working,
with
/media/videos/mp4/9886.mp4?st=hzWlNhfbHFBVU-ovzBIxYA&e=1569458787
or without
/media/videos/mp4/9886.mp4
video is playing
preview.mp4 is not load fast until rigth click on some thumb,after that preview work well.
V3
yes....same here....500% more, but now my traffic drop but is better than before of course
Yes.... It's show that 9 of February will update Chrome and they will not allow new tabs and pops ads etc. So we have to do something?
what is that and what we have to do on our sites?
can someone to explain?
Thanks
Hello,
Xhamster updated their layout, so the graber isn't working anymore.
What code should i change?
Thank you.
Hey
if you get title error like i get
replace get_title() function with this code
private function get_title()
{
preg_match('/title" 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'];
}
Hey
am not sure if i understund of what you want to do...but you want to have for your all videos ONE ? like one somepath/convert.php for all sites?
this need many modifications on script to do it and there is not logic reason to do it....
Hey
with this change total views will show as 349,284,568 instent of 349284568
to add it just go to /templates/defboot/_video_list.tpl.php
and in line 27 change
echo $video['total_views']
with
echo number_format($video['total_views'])
thats is save and its done
hey
it would be better to use number_format() for views, it become more readable and nicer i think.like pornhub have
i add it to my celebs site and looks better. you can add it to v3?
Thanks
PornHub fix
replace
private function get_file()
{
*
}
with
private function get_file()
{
preg_match('/"quality":"720","videoUrl":"(.*?)"},/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
return utf8_trim(stripslashes($match['1']));
}
preg_match('/"quality":"480","videoUrl":"(.*?)"},/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
return utf8_trim(stripslashes($match['1']));
}
preg_match('/"quality":"360","videoUrl":"(.*?)"},/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
return utf8_trim(stripslashes($match['1']));
}
preg_match('/"quality":"240","videoUrl":"(.*?)"},/', $this->html, $match);
if (isset($match['1']) && $match['1']) {
return utf8_trim(stripslashes($match['1']));
}
return FALSE;
}
when u change language and u click logo to go home page is return to default lang
Ok thank you...thats what am going to do then.....
what about new site? is good to go for ssl from begining?
so your suggetion is to go for ssl or not?
Hey guys
i see on my server panel thats i can with one click add SSL to my site via Lets Encrypt ( its free )
i have read in SEO related articles thats google love ssl on sites.....but i have read also thats many sites have lost traffic after changing to https
so what is your opinion? or anyone have change to https?
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'];
}
i copied your xHamster.php and got this message:
Tip!Invalid url! Supported sites: pornhub, redtube, empflix, tnaflix, porn2, pornative, xvideos, pornrabbit, keezmovies, madthumbs, yobt, sextube, slutload, tube8, pornerbros, manhub, deviantclip, xhamster, extremetube!
this is for grab videos ( source of mp4 ) to host videos not for embed videos.
thats error msg is from mass embed