<?php
?><?php
error_reporting(0);
?><!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="cache-control" content="no-siteapp">
<title>B站直播地址解析</title>
<link rel='stylesheet' id='main-css' href='' type='text/css' media='all' />
<link rel='stylesheet' id='main-css' href='' type='text/css' media='all' />
<script type='text/javascript' src='http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js?ver=0.5'></script>
<!-- <meta name="keywords" content="B站直播地址解析">
<meta name="description" content="B站直播地址解析"> -->
<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
<!-- <style>
.w-mfigure{
width: 18%;min-width:150px;
min-width:100px;
height: 180px;
margin-left: 10px;
margin-top: 0px;
display: inline-block;}
h4{font-size:12px}
</style> -->
</head>
<body class="page-template page-template-pages page-template-posts-play page-template-pagesposts-play-php page page-id-16">
<section class="container">
<div class="b-listtab-main">
<div class="s-tab-main">
<ul class="list g-clear"><?php
//https://video.so.com/v?ie=utf-8&src=360sou_home&q=
$url = "http://api.iokzy.com/inc/feifei3/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($ch);
$a = json_decode($result,true);
//echo $result;
$szlen =count($a['data']);
$xh = 0;
while ($xh < $szlen) {
$pic=$a['data'][$xh]['vod_pic'];
$linkd=$a['data'][$xh]['vod_reurl'];
$url1=$a['data'][$xh]['vod_url'];
$name=$a['data'][$xh]['vod_name'];
// echo $url1
?>
<li class='item'><a class='js-tongjic' href='<?php echo $linkd;?>' title='<?php echo $name;?>' target='_blank'>
<div class='cover g-playicon'>
<img src='<?php echo $pic;?>' alt='<?php echo $name;?>' />
</div>
<div class='detail'>
<p class='title g-clear'>
<span class='s1'><?php echo $name;?></span></p>
</div>
</a></li>
<?php
$xh = $xh + 1;
$jiji = strtok($url1, "$");
$link1 = substr(strrchr($url1, "\$"), 1);
echo strrchr($url1, "\$");
//print_r ($jiji);
}
//
// echo '<pre>';
// echo $a['result']['live_room'][0]['tags'].":".$a['result']['live_room'][0]['roomid'];
// echo count($a['result']['live_room']);
// echo '<pre>';
// $szlen =count($a['result']['live_room']);
// $xh = 0;
// while ($xh < $szlen) {
// // echo $a['result']['live_room'][$xh]['title'].":".$a['result']['live_room'][$xh]['roomid'];
// $jx = "https://api.live.bilibili.com/room/v1/Room/playUrl?cid=" . $a['result']['live_room'][$xh]['roomid']."&quality=0&platform=web";
// $ch1 = curl_init();
// curl_setopt($ch1, CURLOPT_SSL_VERIFYPEER, FALSE);
// curl_setopt($ch1, CURLOPT_HEADER, false);
// curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, true);
// curl_setopt($ch1, CURLOPT_URL, $jx);
// curl_setopt($ch1, CURLOPT_REFERER, $jx);
// curl_setopt($ch1, CURLOPT_RETURNTRANSFER, TRUE);
// $result1 = curl_exec($ch1);
// $b = json_decode($result1,true);
// echo '<li>';
// //echo $a['result']['live_room'][$xh]['title'].":".$b['data']['durl'][0]['url'];
// $dz = $b['data']['durl'][0]['url'];
// $bt =$a['result']['live_room'][$xh]['title'];
// echo "<a href='{$dz}' title=''>$bt</a>"."房间号:".$a['result']['live_room'][$xh]['roomid'];
// echo '</li>';
// $xh = $xh + 1;
// }
?></ul>></div></div>
</section>>
</body>
</html>
评论0