|
- <?php
- $id = isset($_GET['id'])?$_GET['id']:'jxws';
- $n = [
- 'jxws' => 'tv_jxtv1.m3u8',//江西卫视
- 'jxds' => 'tv_jxtv2.m3u8',//江西都市
- 'jxjs' => 'tv_jxtv3_hd.m3u8',//江西经视
- 'jxys' => 'tv_jxtv4.m3u8',//江西影视旅游
- 'jxgg' => 'tv_jxtv5.m3u8',//江西公共农业
- 'jxse' => 'tv_jxtv6.m3u8',//江西少儿
- 'jxxw' => 'tv_jxtv7.m3u8',//江西新闻
- 'jxyd' => 'tv_jxtv8.m3u8',//江西移动电视
- 'fsgw' => 'tv_fsgw.m3u8', //风尚购物
- 'tcpd' => 'tv_taoci.m3u8',//陶瓷频道
- ];
- $m = [
- 'jjzh' => 'ganyun_jiujiang1.m3u8',//九江新闻综合
- 'jjgg' => 'ganyun_jiujiang2.m3u8',//九江公共
- 'jjjy' => 'ganyun_jiujiang3.m3u8',//九江教育
- 'srzh' => 'ganyun_shangrao1.m3u8',//上饶新闻综合
- 'srjj' => 'ganyun_shangrao2.m3u8',//上饶经济旅游
- 'pxzh' => 'ganyun_px_xwzh.m3u8',//萍乡综合
- 'pxgg' => 'ganyun_px_ggpd.m3u8',//萍乡公共
- 'lstv' => 'ganyun_lushan.m3u8',//庐山电视台
- 'jgstv' => 'ganyun_jgs.m3u8', //井冈山电视台
- 'xstv' => 'ganyun_xiushui01.m3u8',//修水电视台
- 'dczh' => 'ganyun_duchang.m3u8',//都昌新闻综合
- 'yxtv' => 'ganyun_yongxiu.m3u8',//永修电视台
- 'pztv' => 'ganyun_pengze.m3u8',//彭泽电视台
- 'ngzh' => 'ganyun_ningdu.m3u8',//宁都综合
- 'gfzh' => 'ganyun_guangfeng.m3u8',//广丰综合
- 'ygzh' => 'ganyun_yugan.m3u8',//余干综合
- 'wztv' => 'ganyun_wanzai.m3u8',//万载电视台
- 'wnzh' => 'ganyun_wuning.m3u8',//武宁新闻综合
- 'gczh' => 'ganyun_guangchu此字符被系统屏蔽.m3u8',//广昌综合
- 'tgtv' => 'ganyun_tonggu.m3u8', //铜鼓电视台
- 'yszh' => 'ganyun_yanshan.m3u8',//铅山综合
- 'fyzh' => 'ganyun_fenyi_tv.m3u8',//分宜综合
- 'lhtv' => 'ganyun_lianhua.m3u8', //莲花电视台
- ];
- if (array_key_exists($id, $m)) {
-
-
-
- $playurl = 'https://live02.jxtvcn.com.cn/live-jxtvcn/'.$m[$id];
- } elseif (array_key_exists($id, $n)) {
- $key = base64_decode('dUJhR0xobTd6OGY2ZUdqdl5RbEBoWg==');
- $stream = $n[$id];
- $time = time();
- $auth = md5($time.$stream.$key);
- $pdata = '{"t":'.$time.',"stream":"'.$stream.'","uuid":"0bc0060ba018"}';
- $head = [
- 'Content-type: application/json; charset=UTF-8',
- 'Authorization:'.$auth,
- 'Referer: http://www.jxntv.cn/',
- 'User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36',
- ];
- $url = 'https://cdnauth.jxgdw.com/liveauth/pc';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $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_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $pdata);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
- $data = curl_exec($ch);
- curl_close($ch);
- $t = json_decode($data)->t;
- $token = json_decode($data)->token;
- $playurl = "http://yun-live.jxtvcn.com.cn/live-jxtv/".$stream."?source=pc&t=".$t."&token=".$token."&uuid=0bc0060ba018";
- }
- header('Location:'.$playurl);
- //echo $playurl;
- ?>
复制代码
|
|