Skip to content

Commit

Permalink
Merge pull request jeckman#106 from Diloy93/master
Browse files Browse the repository at this point in the history
Update getvideo.php thanks @Diloy93
  • Loading branch information
jeckman committed Oct 28, 2015
2 parents 95a811f + 6c44ec9 commit b850e8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions getvideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ function is_chrome(){
for ($i = 0; $i < count($avail_formats); $i++) {
echo '<li>';
echo '<span class="itag">' . $avail_formats[$i]['itag'] . '</span> ';
if($config['VideoLinkMode']=='direct'||$config['VideoLinkMode']=='both')
if($config['VideoLinkMode']=='direct'||$config['VideoLinkMode']=='both'){
$directlink = explode('.googlevideo.com/',$avail_formats[$i]['url']);
$directlink = 'http://redirector.googlevideo.com/' . $directlink[1] . '';
echo '<a href="' . $directlink . '&title='.$cleanedtitle.'" class="mime">' . $avail_formats[$i]['type'] . '</a> ';
else
}else{
echo '<span class="mime">' . $avail_formats[$i]['type'] . '</span> ';
echo '<small>(' . $avail_formats[$i]['quality'];
echo '<small>(' . $avail_formats[$i]['quality'];}
if($config['VideoLinkMode']=='proxy'||$config['VideoLinkMode']=='both')
echo ' / ' . '<a href="download.php?mime=' . $avail_formats[$i]['type'] .'&title='. urlencode($my_title) .'&token='.base64_encode($avail_formats[$i]['url']) . '" class="dl">download</a>';
echo ')</small> '.
Expand Down

0 comments on commit b850e8f

Please sign in to comment.