$id = isset($_GET['id'])?$_GET['id']:'xwhd';
$n = [
"xw" => 5,//济南新闻
"ds" => 6,//济南都市
"ty" => 212,//济南文旅体育
"sh" => 9,//济南生活
"se" => 11,//济南少儿
"lz" => 225,//济南鲁中
"xwhd" => 13,//济南新闻高清
"yd" => 244,//济南移动电视
"dt" => 245,//济南地铁电视
"cs" => 246,//济南城市电视
];
$headers = array(
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36",
);
function getdata($url,$headers){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
curl_close($ch);
return $res;
}
$url = "https://zhibo.ijntv.cn/m2o/channel/channel_info.php?id={$n[$id]}";
$m3u8 = json_decode(getdata($url,$headers))->m3u8;
header('location:'.$m3u8);
// print_r($m3u8);
?>
谢谢大师的分享 aaaaaaaaaaaaaaaaaaaaaaaaaa 谢谢楼主的分享 什么啊啊啊 感谢分享 关于济南电视台PHP RE: 关于济南电视台PHP [修改]
谢谢楼主分享
页:
[1]
2