Salam belə bir problemlə üzləşirəm.
http://mp3.bass.az/Q20QyiW_XGQ_namiq-qaracuxurlu-nefes-qədər.html
Burada video kimi yükləmək üçün olan linklərdə 0kb 0mb göstərir. Gərək səhifəni bir neçə dəfə yeniləyəsən ki qaydasına düşsün. Bu problemi aradan necə qaldıra bilərəm. ?
Verilmiş cavablar və yazılan şərhlər (2 cavab var)
0
Saytın rəhbərliyinə yazın ki saytınızda problem var, düzəltsinlər. Yox əgər sayt sizindirsə, o halda kod hissədə bu işə cavabdeh kodu analiz etmək gərəkdir, kənardan heç vaxt bilinə bilməz bunun səbəbi
0
1
echo '<div class="authnew"><table id="customers">
2
3
<tr>
4
<th>Format</th>
5
<th>Keyfiyyət</th>
6
<th>Həcmi</th>
7
<th>Yükləmə linkləri</th>
8
</tr>';
9
10
11
function get_size_Download($url) {
12
$my_ch = curl_init();
13
curl_setopt($my_ch, CURLOPT_URL,$url);
14
curl_setopt($my_ch, CURLOPT_HEADER, true);
15
curl_setopt($my_ch, CURLOPT_NOBODY, true);
16
curl_setopt($my_ch, CURLOPT_RETURNTRANSFER, true);
17
curl_setopt($my_ch, CURLOPT_TIMEOUT, 10);
18
$r = curl_exec($my_ch);
19
foreach(explode("\n", $r) as $header) {
20
if(strpos($header, 'Content-Length:') === 0) {
21
return trim(substr($header,16));
22
}
23
}
24
return '';
25
}
26
function formatBytes_Download($bytes, $precision = 2) {
27
$units = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
28
$bytes = max($bytes, 0);
29
$pow = floor(($bytes ? log($bytes) : 0) / log(1024));
30
$pow = min($pow, count($units) - 1);
31
$bytes /= pow(1024, $pow);
32
return round($bytes, $precision) . ' ' . $units[$pow];
33
}
34
35
36
parse_str(file_get_contents("http://youtube.com/get_video_info?video_id=$id"),$info); //decode the data
37
$streams = $info['url_encoded_fmt_stream_map']; //the video's location info
38
$streams = explode(',',$streams);
39
foreach($streams as $stream){
40
parse_str($stream,$data);
41
$type = explode(";",$data["type"]);
42
$type = str_replace("video/","",$type[0]);
43
$type = ucfirst($type);
44
echo "<tr>";
45
echo "<td>{$type}</td>";
46
47
$size = get_size_Download(urldecode($data["url"]));
48
$filesize = formatBytes_Download($size);
49
50
echo "<td>{$data["quality"]}</td>";
51
echo "<td>{$filesize}</td>";
52
echo '<td><a style="margin: 0px 0px;float: left" class="btn btn-raised btn-warning btn-sm">Yüklə</a></td>
53
';
54
55
echo "</tr>";
56
57
}
58
echo '</table></div>';
Sual verin
Cavab verin