Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
All Webmasters Help me here
05-17-2016, 08:11 PM,
Post: #1
All Webmasters Help me here
I have a youtube api v3 downloader script but download option stopped working. now i want to use keepvid.com api as download option BUT i dont know how to add it in the watch.php file of my script. any one can help me out. give me your email address and i send you my watch.php file and you help me.

This is Watch.php file of my script below

<?php
$id = $_GET['v'];
include 'vfunc.php';
$yf=json_decode(ngegrab('https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id='.$id.'&maxResults=1&key=AIzaSyBbshoPpKKEUko4Pnb7vBYUYRtLi0lcwjE'),true);
$name=$yf[items][0][snippet][title];
$q=$name;
$tgl=$yf[items][0][snippet][publishedAt];
$date=dateyt($tgl);
$des=$yf[items][0][snippet][description];

$channel=$yf[items][0][snippet][channelTitle];
$viewCount=$yf[items][0][statistics][viewCount];
$likeCount=$yf[items][0][statistics][likeCount];
$dislikeCount=$yf[items][0][statistics][dislikeCount];
$durasi =$yf[items][0][contentDetails][duration];
$duration = $durasi;

$duration = str_replace('PT', '', $duration);
$duration = str_replace('H', ' hour ', $duration);
$duration = str_replace('M', ' min ', $duration);
$duration = str_replace('S', ' sec ', $duration);
$kata = ''.$name.'';
$kate = preg_replace('/[^a-z0-9_\-\.]/i','-',$name);
$kate = str_replace('.', '-', $kate);
$kate = str_replace('---', '-', $kate);
$kate = str_replace('--', '-', $kate);
$value = '4';
if (str_word_count($kata) > $value)
{
$limit = implode(' ', array_slice(explode(' ', $kata), 0, $value)).'';
$lmit = preg_replace('/[^a-z0-9_\-\.]/i','-',$limit);
$lmit = str_replace('---', '-', $lmit);
$lmit = str_replace('--', '-', $lmit);
$lmit = str_replace(' ', '-', $lmit);
$lmit = str_replace('.', '-', $lmit);
}
else
{
$limit = $kata;
$lmit = str_replace(' ', '-', $limit);
}
$get_video = file_get_contents('http://api.waptube.net/video-mp4?v='.$id);
$get_video=str_replace('yoursite','mysitename.com',$get_video); // Site Name Replacing


$title = ' '.$name.' - Download MP4- 3GP - FLV ('.$duration.')';
$description = ''.$des.'';
include 'head.php';
echo'<div class="kotakcari">
<form action="/search.php" method="get"><input type="text" name="q" value="" width="80%"><input type="submit" value="Search"> <br />
<input name="act" type="radio" value="video" checked="checked">Video
</form>
</div>';
echo '<div class="ngiri"><h2 class="title_a"> '.$name.'</h2><div class="menu"><table class="otable" width="100%"><tr><td width="70%">
<a href="/nonton?v='.$id.'"><img width="100%" src="http://i.ytimg.com/vi/'.$id.'/hqdefault.jpg" alt="'.$name.'"/></a><br /><a href="/nonton?v='.$id.'"><div class="dbutton"> Watch Video </div></a>
</td>
<td>
<img src="/view.jpg" width="18px" /> '.$viewCount.'<br /> <img src="/like.jpg" width="18px"> '.$likeCount.' <br />
<img src="/upload.jpg" width="18px" /> '.$date.' <br /><img src="/duration.png" width="18px" />
'.$duration.'
</td></tr></table>
'.$des.'</div><div class="r">Direct Download Link</div><div class="menu">';

echo''.$get_video.'';

echo'</div><div class="info"><table><tr><td><img src="/info-32.png"></td><td>If download link not display please refresh the page.
</td></tr>
</table></div></div>';
include'related.php';
echo '</tr></table></div></div></div></div>';
include'foot.php';
?>

Keepvid download api i want to use in my watch.php file is here. see it below


<div style="background:url('http://keepvid.com/images/downloadbar/ajax-loader.gif') no-repeat center;width:700px;"><iframe src="http://keepvid.com/webmasters/iframe-downloadbar.php" width="700" height="34" scrolling="no" frameBorder="0"></iframe></div>


So all webmasters help me please. thank you so much.
Reply
05-24-2016, 06:24 AM,
Post: #2
RE: All Webmasters Help me here
you need good paid api script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)